#CFC04A#CFC04A

#CFC04A is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.8% C 0.138 H 102.1°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#CFC04A
RGBrgb(207, 192, 74)
HSLhsl(53, 58%, 55%)
HSVhsv(53, 64%, 81%)
CMYKcmyk(0%, 7.2%, 64.3%, 18.8%)
CIE-LABlab(76.96, -8.63, 59.33)
CIE-LCHlch(76.96, 59.96, 98.27°)
OKLaboklab(79.84% -0.0287 0.1346)
OKLCHoklch(79.84% 0.138 102.1)
XYZxyz(45.8196, 51.4609, 13.9967)
Luminance0.5146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC04A #4A59CF
analogous
#CF7D4A #CFC04A #9CCF4A
triadic
#CFC04A #4ACFC0 #C04ACF
tetradic
#CFC04A #4ACF7D #4A59CF #CF4A9C
square
#CFC04A #4ACF7D #4A59CF #CF4A9C
split-complementary
#CFC04A #4A9CCF #7D4ACF
monochromatic
#7D7321 #AE9F2E #CFC04A #DCD17A #E9E2AB

Accessibility & contrast

On white

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

On black

11.29
#CFC04A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC04A
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC04A#FFFFFF#000000##000000
##CFC04A1.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA3B
Deuteranopia (green-blind)
#D5C151
Tritanopia (blue-blind)
#DEB3A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cfc04a;
/* rgb */ color: rgb(207, 192, 74);
/* oklch */ color: oklch(79.8% 0.138 102.1);
Tailwind
colors: {
  custom: {
    50: '#e1d282',
    500: '#cfc04a',
    950: '#000000',
  },
}
SCSS
$custom: #cfc04a;
$custom-light: #e1d282;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc04a",
  "rgb": {
    "r": 207,
    "g": 192,
    "b": 74
  },
  "hsl": {
    "h": 53.233,
    "s": 58.079,
    "l": 55.098
  },
  "oklch": {
    "l": 0.7984,
    "c": 0.13758,
    "h": 102.1
  },
  "luminance": 0.51459
}

Semantic roles & 50–950 ramp

primary
#CFC04A
secondary
#384185
accent
#58E146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC04A

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

Preview Lab → · Contrast checker → · Palette generator →

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