#CFC831#CFC831

#CFC831 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.4% C 0.161 H 106.7°. Best body text is #000000 at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#CFC831
RGBrgb(207, 200, 49)
HSLhsl(57, 62%, 50%)
HSVhsv(57, 76%, 81%)
CMYKcmyk(0%, 3.4%, 76.3%, 18.8%)
CIE-LABlab(78.92, -13.93, 70.49)
CIE-LCHlch(78.92, 71.85, 101.18°)
OKLaboklab(81.35% -0.0462 0.1538)
OKLCHoklch(81.35% 0.161 106.7)
XYZxyz(46.9427, 54.7974, 11.0094)
Luminance0.5480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFC831 #3138CF
analogous
#CF7931 #CFC831 #87CF31
triadic
#CFC831 #31CFC8 #C831CF
tetradic
#CFC831 #31CF79 #3138CF #CF3187
square
#CFC831 #31CF79 #3138CF #CF3187
split-complementary
#CFC831 #3187CF #7931CF
monochromatic
#6C6919 #9E9925 #CFC831 #DBD563 #E6E394

Accessibility & contrast

On white

1.76
#CFC831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.96
#CFC831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFC831
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFC831#FFFFFF#000000##000000
##CFC8311.001.7611.9611.96
#FFFFFF1.761.0021.0021.00
#00000011.9621.001.001.00
##00000011.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C007
Deuteranopia (green-blind)
#DCC63D
Tritanopia (blue-blind)
#DEBAAC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cfc831;
/* rgb */ color: rgb(207, 200, 49);
/* oklch */ color: oklch(81.4% 0.161 106.7);
Tailwind
colors: {
  custom: {
    50: '#e2d876',
    500: '#cfc831',
    950: '#000000',
  },
}
SCSS
$custom: #cfc831;
$custom-light: #e2d876;
$custom-dark: #000000;
JSON
{
  "hex": "#cfc831",
  "rgb": {
    "r": 207,
    "g": 200,
    "b": 49
  },
  "hsl": {
    "h": 57.342,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.81354,
    "c": 0.16062,
    "h": 106.7
  },
  "luminance": 0.54796
}

Semantic roles & 50–950 ramp

primary
#CFC831
secondary
#2E3276
accent
#4AE543
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CFC831

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

Preview Lab → · Contrast checker → · Palette generator →

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