#CFCA31#CFCA31

#CFCA31 is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.8% C 0.162 H 107.6°. Best body text is #000000 at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#CFCA31
RGBrgb(207, 202, 49)
HSLhsl(58, 62%, 50%)
HSVhsv(58, 76%, 81%)
CMYKcmyk(0%, 2.4%, 76.3%, 18.8%)
CIE-LABlab(79.46, -14.93, 70.97)
CIE-LCHlch(79.46, 72.53, 101.88°)
OKLaboklab(81.78% -0.049 0.1549)
OKLCHoklch(81.78% 0.162 107.6)
XYZxyz(47.4089, 55.7299, 11.1648)
Luminance0.5573 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCA31 #3136CF
analogous
#CF7B31 #CFCA31 #85CF31
triadic
#CFCA31 #31CFCA #CA31CF
tetradic
#CFCA31 #31CF7B #3136CF #CF3185
square
#CFCA31 #31CF7B #3136CF #CF3185
split-complementary
#CFCA31 #3185CF #7B31CF
monochromatic
#6C6A19 #9E9A25 #CFCA31 #DBD763 #E6E494

Accessibility & contrast

On white

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

On black

12.15
#CFCA31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCA31
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCA31#FFFFFF#000000##000000
##CFCA311.001.7312.1512.15
#FFFFFF1.731.0021.0021.00
#00000012.1521.001.001.00
##00000012.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC205
Deuteranopia (green-blind)
#DEC73E
Tritanopia (blue-blind)
#DEBCAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cfca31;
/* rgb */ color: rgb(207, 202, 49);
/* oklch */ color: oklch(81.8% 0.162 107.6);
Tailwind
colors: {
  custom: {
    50: '#e2d976',
    500: '#cfca31',
    950: '#000000',
  },
}
SCSS
$custom: #cfca31;
$custom-light: #e2d976;
$custom-dark: #000000;
JSON
{
  "hex": "#cfca31",
  "rgb": {
    "r": 207,
    "g": 202,
    "b": 49
  },
  "hsl": {
    "h": 58.101,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.81781,
    "c": 0.16244,
    "h": 107.6
  },
  "luminance": 0.55728
}

Semantic roles & 50–950 ramp

primary
#CFCA31
secondary
#2E3176
accent
#48E543
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CFCA31

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

Preview Lab → · Contrast checker → · Palette generator →

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