#CFC04F#CFC04F

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

Color values

HEX#CFC04F
RGBrgb(207, 192, 79)
HSLhsl(53, 57%, 56%)
HSVhsv(53, 62%, 81%)
CMYKcmyk(0%, 7.2%, 61.8%, 18.8%)
CIE-LABlab(77.00, -8.31, 57.24)
CIE-LCHlch(77.00, 57.84, 98.26°)
OKLaboklab(79.89% -0.0273 0.1308)
OKLCHoklch(79.89% 0.134 101.8)
XYZxyz(45.9948, 51.5310, 14.9193)
Luminance0.5153 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC04F #4F5ECF
analogous
#CF804F #CFC04F #9ECF4F
triadic
#CFC04F #4FCFC0 #C04FCF
tetradic
#CFC04F #4FCF80 #4F5ECF #CF4F9E
square
#CFC04F #4FCF80 #4F5ECF #CF4F9E
split-complementary
#CFC04F #4F9ECF #804FCF
monochromatic
#817623 #B1A230 #CFC04F #DCD17F #E9E2AF

Accessibility & contrast

On white

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

On black

11.31
#CFC04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC04F
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC04F#FFFFFF#000000##000000
##CFC04F1.001.8611.3111.31
#FFFFFF1.861.0021.0021.00
#00000011.3121.001.001.00
##00000011.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cfc04f;
/* rgb */ color: rgb(207, 192, 79);
/* oklch */ color: oklch(79.9% 0.134 101.8);
Tailwind
colors: {
  custom: {
    50: '#e1d285',
    500: '#cfc04f',
    950: '#000000',
  },
}
SCSS
$custom: #cfc04f;
$custom-light: #e1d285;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc04f",
  "rgb": {
    "r": 207,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 52.969,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.79887,
    "c": 0.13364,
    "h": 101.8
  },
  "luminance": 0.51529
}

Semantic roles & 50–950 ramp

primary
#CFC04F
secondary
#3A4388
accent
#59E047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC04F

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

Preview Lab → · Contrast checker → · Palette generator →

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