#CFC931#CFC931

#CFC931 is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.6% C 0.162 H 107.1°. Best body text is #000000 at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#CFC931
RGBrgb(207, 201, 49)
HSLhsl(58, 62%, 50%)
HSVhsv(58, 76%, 81%)
CMYKcmyk(0%, 2.9%, 76.3%, 18.8%)
CIE-LABlab(79.19, -14.43, 70.73)
CIE-LCHlch(79.19, 72.19, 101.53°)
OKLaboklab(81.57% -0.0476 0.1544)
OKLCHoklch(81.57% 0.162 107.1)
XYZxyz(47.1751, 55.2621, 11.0868)
Luminance0.5526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC931 #3137CF
analogous
#CF7A31 #CFC931 #86CF31
triadic
#CFC931 #31CFC9 #C931CF
tetradic
#CFC931 #31CF7A #3137CF #CF3186
square
#CFC931 #31CF7A #3137CF #CF3186
split-complementary
#CFC931 #3186CF #7A31CF
monochromatic
#6C6919 #9E9925 #CFC931 #DBD663 #E6E394

Accessibility & contrast

On white

1.74
#CFC931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.05
#CFC931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC931
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC931#FFFFFF#000000##000000
##CFC9311.001.7412.0512.05
#FFFFFF1.741.0021.0021.00
#00000012.0521.001.001.00
##00000012.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC106
Deuteranopia (green-blind)
#DDC73E
Tritanopia (blue-blind)
#DEBBAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cfc931;
/* rgb */ color: rgb(207, 201, 49);
/* oklch */ color: oklch(81.6% 0.162 107.1);
Tailwind
colors: {
  custom: {
    50: '#e2d976',
    500: '#cfc931',
    950: '#000000',
  },
}
SCSS
$custom: #cfc931;
$custom-light: #e2d976;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc931",
  "rgb": {
    "r": 207,
    "g": 201,
    "b": 49
  },
  "hsl": {
    "h": 57.722,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.81568,
    "c": 0.16153,
    "h": 107.1
  },
  "luminance": 0.5526
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CFC931

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

Preview Lab → · Contrast checker → · Palette generator →

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