CSS Named Color / Web Safe Color

Copy-ready color values

HEX#FFFF00
RGBrgb(255, 255, 0)
HSLhsl(60, 100%, 50%)
HSVhsv(60, 100%, 100%)
CMYK approx.cmyk(0, 0, 100, 0)

Color value table

FormatValueCopy
HEX#FFFF00
RGBrgb(255, 255, 0)
HSLhsl(60, 100%, 50%)
HSVhsv(60, 100%, 100%)
CMYK approx.cmyk(0, 0, 100, 0)
CSS keywordyellow

Contrast and classification

DarkLightness1.07:1Contrast with white19.56:1Contrast with blackRed / OrangeColor family

Shade and tint preview

White 10%
#FFFF1A

White 30%
#FFFF4D

White 70%
#FFFFB3

White 90%
#FFFFE6

Black 10%
#E6E600

Black 30%
#B3B300

Black 70%
#4D4D00

Black 90%
#1A1A00

Harmony palettes

Complementary

#0000FF
#3D3DFF

Analogous

#FFFF1F
#FFE01F

Triadic

#FF00FF
#00FFFF

Split complementary

#2E2EFF
#0000D1

Using Yellow

Yellow works best when it is chosen with contrast, surrounding colors, and interface state in mind. Use the HEX value for static CSS, RGB when you need channel-level control, and HSL when adjusting lightness or saturation for hover states. The CMYK value is an approximate screen-to-print conversion, so print workflows should still rely on calibrated design software or a printer profile.

CSS, SCSS, and Tailwind examples

:root {
  --color-yellow: #ffff00;
}

.button-primary {
  background: var(--color-yellow);
  color: #000000;
}

$yellow: #ffff00;

// Tailwind arbitrary value
class="bg-[#ffff00] text-white"