#CFC04D#CFC04D

#CFC04D is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.9% C 0.135 H 101.9°. Best body text is #000000 at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#CFC04D
RGBrgb(207, 192, 77)
HSLhsl(53, 58%, 56%)
HSVhsv(53, 63%, 81%)
CMYKcmyk(0%, 7.2%, 62.8%, 18.8%)
CIE-LABlab(76.98, -8.44, 58.08)
CIE-LCHlch(76.98, 58.69, 98.27°)
OKLaboklab(79.87% -0.0279 0.1323)
OKLCHoklch(79.87% 0.135 101.9)
XYZxyz(45.9231, 51.5023, 14.5417)
Luminance0.5150 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC04D #4D5CCF
analogous
#CF7F4D #CFC04D #9DCF4D
triadic
#CFC04D #4DCFC0 #C04DCF
tetradic
#CFC04D #4DCF7F #4D5CCF #CF4D9D
square
#CFC04D #4DCF7F #4D5CCF #CF4D9D
split-complementary
#CFC04D #4D9DCF #7F4DCF
monochromatic
#7F7522 #AFA12F #CFC04D #DCD17D #E9E2AD

Accessibility & contrast

On white

1.86
#CFC04D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.30
#CFC04D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC04D
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC04D#FFFFFF#000000##000000
##CFC04D1.001.8611.3011.30
#FFFFFF1.861.0021.0021.00
#00000011.3021.001.001.00
##00000011.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA3F
Deuteranopia (green-blind)
#D5C153
Tritanopia (blue-blind)
#DEB3A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cfc04d;
/* rgb */ color: rgb(207, 192, 77);
/* oklch */ color: oklch(79.9% 0.135 101.9);
Tailwind
colors: {
  custom: {
    50: '#e1d284',
    500: '#cfc04d',
    950: '#000000',
  },
}
SCSS
$custom: #cfc04d;
$custom-light: #e1d284;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc04d",
  "rgb": {
    "r": 207,
    "g": 192,
    "b": 77
  },
  "hsl": {
    "h": 53.077,
    "s": 57.522,
    "l": 55.686
  },
  "oklch": {
    "l": 0.79868,
    "c": 0.13524,
    "h": 101.9
  },
  "luminance": 0.515
}

Semantic roles & 50–950 ramp

primary
#CFC04D
secondary
#394287
accent
#59E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC04D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CFC04D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva