#CECF31#CECF31

#CECF31 is a very light, vivid yellow. Relative luminance 0.580; OKLCH L 82.8% C 0.167 H 109.9°. Best body text is #000000 at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#CECF31
RGBrgb(206, 207, 49)
HSLhsl(60, 62%, 50%)
HSVhsv(60, 76%, 81%)
CMYKcmyk(0.5%, 0%, 76.3%, 18.8%)
CIE-LABlab(80.72, -17.84, 72.09)
CIE-LCHlch(80.72, 74.27, 103.90°)
OKLaboklab(82.77% -0.057 0.1573)
OKLCHoklch(82.77% 0.167 109.9)
XYZxyz(48.3226, 57.9706, 11.5491)
Luminance0.5797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CECF31 #3231CF
analogous
#CF8131 #CECF31 #7FCF31
triadic
#CECF31 #31CECF #CF31CE
tetradic
#CECF31 #31CF81 #3231CF #CF317F
square
#CECF31 #31CF81 #3231CF #CF317F
split-complementary
#CECF31 #317FCF #8131CF
monochromatic
#6C6C19 #9D9E25 #CECF31 #DADB63 #E6E694

Accessibility & contrast

On white

1.67
#CECF31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.59
#CECF31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CECF31
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CECF31#FFFFFF#000000##000000
##CECF311.001.6712.5912.59
#FFFFFF1.671.0021.0021.00
#00000012.5921.001.001.00
##00000012.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C600
Deuteranopia (green-blind)
#E1CB3F
Tritanopia (blue-blind)
#DDC2B2
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cecf31;
/* rgb */ color: rgb(206, 207, 49);
/* oklch */ color: oklch(82.8% 0.167 109.9);
Tailwind
colors: {
  custom: {
    50: '#e1dd76',
    500: '#cecf31',
    950: '#000000',
  },
}
SCSS
$custom: #cecf31;
$custom-light: #e1dd76;
$custom-dark: #000000;
JSON
{
  "hex": "#cecf31",
  "rgb": {
    "r": 206,
    "g": 207,
    "b": 49
  },
  "hsl": {
    "h": 60.38,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.8277,
    "c": 0.16733,
    "h": 109.9
  },
  "luminance": 0.57969
}

Semantic roles & 50–950 ramp

primary
#CECF31
secondary
#2F2E76
accent
#43E544
background
#FEFEFB
surface
#FDFCF1
border
#D5D5CB
text
#161509
muted
#84847D

Preview Lab

Preview with #CECF31

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

Preview Lab → · Contrast checker → · Palette generator →

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