#CEC839#CEC839

#CEC839 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.3% C 0.156 H 107.0°. Best body text is #000000 at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#CEC839
RGBrgb(206, 200, 57)
HSLhsl(58, 60%, 52%)
HSVhsv(58, 72%, 81%)
CMYKcmyk(0%, 2.9%, 72.3%, 19.2%)
CIE-LABlab(78.88, -14.02, 67.79)
CIE-LCHlch(78.88, 69.23, 101.69°)
OKLaboklab(81.32% -0.0457 0.1496)
OKLCHoklch(81.32% 0.156 107)
XYZxyz(46.8482, 54.7274, 11.9658)
Luminance0.5473 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC839 #393FCE
analogous
#CE7E39 #CEC839 #8ACE39
triadic
#CEC839 #39CEC8 #C839CE
tetradic
#CEC839 #39CE7E #393FCE #CE398A
square
#CEC839 #39CE7E #393FCE #CE398A
split-complementary
#CEC839 #398ACE #7E39CE
monochromatic
#716D1C #A29D28 #CEC839 #DAD66A #E6E39B

Accessibility & contrast

On white

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

On black

11.95
#CEC839 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC839
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC839#FFFFFF#000000##000000
##CEC8391.001.7611.9511.95
#FFFFFF1.761.0021.0021.00
#00000011.9521.001.001.00
##00000011.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C01E
Deuteranopia (green-blind)
#DCC644
Tritanopia (blue-blind)
#DDBBAC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec839;
/* rgb */ color: rgb(206, 200, 57);
/* oklch */ color: oklch(81.3% 0.156 107.0);
Tailwind
colors: {
  custom: {
    50: '#e1d879',
    500: '#cec839',
    950: '#000000',
  },
}
SCSS
$custom: #cec839;
$custom-light: #e1d879;
$custom-dark: #000000;
JSON
{
  "hex": "#cec839",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 57
  },
  "hsl": {
    "h": 57.584,
    "s": 60.324,
    "l": 51.569
  },
  "oklch": {
    "l": 0.81315,
    "c": 0.15643,
    "h": 107
  },
  "luminance": 0.54726
}

Semantic roles & 50–950 ramp

primary
#CEC839
secondary
#31347A
accent
#4BE344
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC839

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

Preview Lab → · Contrast checker → · Palette generator →

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