#CFC04C#CFC04C

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

Color values

HEX#CFC04C
RGBrgb(207, 192, 76)
HSLhsl(53, 58%, 55%)
HSVhsv(53, 63%, 81%)
CMYKcmyk(0%, 7.2%, 63.3%, 18.8%)
CIE-LABlab(76.97, -8.50, 58.50)
CIE-LCHlch(76.97, 59.12, 98.27°)
OKLaboklab(79.86% -0.0281 0.1331)
OKLCHoklch(79.86% 0.136 101.9)
XYZxyz(45.8881, 51.4883, 14.3572)
Luminance0.5149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC04C #4C5BCF
analogous
#CF7E4C #CFC04C #9CCF4C
triadic
#CFC04C #4CCFC0 #C04CCF
tetradic
#CFC04C #4CCF7E #4C5BCF #CF4C9C
square
#CFC04C #4CCF7E #4C5BCF #CF4C9C
split-complementary
#CFC04C #4C9CCF #7E4CCF
monochromatic
#7F7422 #AFA02F #CFC04C #DCD17C #E9E2AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CFC04C#FFFFFF#000000##000000
##CFC04C1.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)
#D1BA3E
Deuteranopia (green-blind)
#D5C152
Tritanopia (blue-blind)
#DEB3A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cfc04c;
/* rgb */ color: rgb(207, 192, 76);
/* oklch */ color: oklch(79.9% 0.136 101.9);
Tailwind
colors: {
  custom: {
    50: '#e1d283',
    500: '#cfc04c',
    950: '#000000',
  },
}
SCSS
$custom: #cfc04c;
$custom-light: #e1d283;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc04c",
  "rgb": {
    "r": 207,
    "g": 192,
    "b": 76
  },
  "hsl": {
    "h": 53.13,
    "s": 57.709,
    "l": 55.49
  },
  "oklch": {
    "l": 0.79859,
    "c": 0.13603,
    "h": 101.9
  },
  "luminance": 0.51486
}

Semantic roles & 50–950 ramp

primary
#CFC04C
secondary
#394286
accent
#58E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC04C

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

Preview Lab → · Contrast checker → · Palette generator →

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