#CFCF31#CFCF31

#CFCF31 is a very light, vivid yellow. Relative luminance 0.581; OKLCH L 82.9% C 0.167 H 109.6°. Best body text is #000000 at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#CFCF31
RGBrgb(207, 207, 49)
HSLhsl(60, 62%, 50%)
HSVhsv(60, 76%, 81%)
CMYKcmyk(0%, 0%, 76.3%, 18.8%)
CIE-LABlab(80.80, -17.42, 72.19)
CIE-LCHlch(80.80, 74.26, 103.57°)
OKLaboklab(82.85% -0.0559 0.1575)
OKLCHoklch(82.85% 0.167 109.6)
XYZxyz(48.6012, 58.1143, 11.5622)
Luminance0.5811 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFCF31 #3131CF
analogous
#CF8031 #CFCF31 #80CF31
triadic
#CFCF31 #31CFCF #CF31CF
tetradic
#CFCF31 #31CF80 #3131CF #CF3180
square
#CFCF31 #31CF80 #3131CF #CF3180
split-complementary
#CFCF31 #3180CF #8031CF
monochromatic
#6C6C19 #9E9E25 #CFCF31 #DBDB63 #E6E694

Accessibility & contrast

On white

1.66
#CFCF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.62
#CFCF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFCF31
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFCF31#FFFFFF#000000##000000
##CFCF311.001.6612.6212.62
#FFFFFF1.661.0021.0021.00
#00000012.6221.001.001.00
##00000012.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C600
Deuteranopia (green-blind)
#E2CB3F
Tritanopia (blue-blind)
#DEC2B2
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cfcf31;
/* rgb */ color: rgb(207, 207, 49);
/* oklch */ color: oklch(82.9% 0.167 109.6);
Tailwind
colors: {
  custom: {
    50: '#e2dd76',
    500: '#cfcf31',
    950: '#000000',
  },
}
SCSS
$custom: #cfcf31;
$custom-light: #e2dd76;
$custom-dark: #000000;
JSON
{
  "hex": "#cfcf31",
  "rgb": {
    "r": 207,
    "g": 207,
    "b": 49
  },
  "hsl": {
    "h": 60,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.82853,
    "c": 0.16712,
    "h": 109.6
  },
  "luminance": 0.58113
}

Semantic roles & 50–950 ramp

primary
#CFCF31
secondary
#2E2E76
accent
#43E543
background
#FEFEFB
surface
#FDFCF1
border
#D5D5CB
text
#161509
muted
#84847D

Preview Lab

Preview with #CFCF31

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

Preview Lab → · Contrast checker → · Palette generator →

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