#CFC94F#CFC94F

#CFC94F is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.8% C 0.142 H 106.5°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#CFC94F
RGBrgb(207, 201, 79)
HSLhsl(57, 57%, 56%)
HSVhsv(57, 62%, 81%)
CMYKcmyk(0%, 2.9%, 61.8%, 18.8%)
CIE-LABlab(79.39, -12.90, 59.81)
CIE-LCHlch(79.39, 61.19, 102.17°)
OKLaboklab(81.79% -0.0403 0.1363)
OKLCHoklch(81.79% 0.142 106.5)
XYZxyz(48.0317, 55.6048, 15.5983)
Luminance0.5560 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC94F #4F55CF
analogous
#CF894F #CFC94F #95CF4F
triadic
#CFC94F #4FCFC9 #C94FCF
tetradic
#CFC94F #4FCF89 #4F55CF #CF4F95
square
#CFC94F #4FCF89 #4F55CF #CF4F95
split-complementary
#CFC94F #4F95CF #894FCF
monochromatic
#817C23 #B1AB30 #CFC94F #DCD87F #E9E7AF

Accessibility & contrast

On white

1.73
#CFC94F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.12
#CFC94F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC94F
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC94F#FFFFFF#000000##000000
##CFC94F1.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C240
Deuteranopia (green-blind)
#DCC756
Tritanopia (blue-blind)
#DDBDAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfc94f;
/* rgb */ color: rgb(207, 201, 79);
/* oklch */ color: oklch(81.8% 0.142 106.5);
Tailwind
colors: {
  custom: {
    50: '#e1d986',
    500: '#cfc94f',
    950: '#000000',
  },
}
SCSS
$custom: #cfc94f;
$custom-light: #e1d986;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc94f",
  "rgb": {
    "r": 207,
    "g": 201,
    "b": 79
  },
  "hsl": {
    "h": 57.188,
    "s": 57.143,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81787,
    "c": 0.14212,
    "h": 106.5
  },
  "luminance": 0.55603
}

Semantic roles & 50–950 ramp

primary
#CFC94F
secondary
#3A3E88
accent
#4FE047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CFC94F

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

Preview Lab → · Contrast checker → · Palette generator →

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