#CEC840#CEC840

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

Color values

HEX#CEC840
RGBrgb(206, 200, 64)
HSLhsl(57, 59%, 53%)
HSVhsv(57, 69%, 81%)
CMYKcmyk(0%, 2.9%, 68.9%, 19.2%)
CIE-LABlab(78.93, -13.68, 65.31)
CIE-LCHlch(78.93, 66.73, 101.83°)
OKLaboklab(81.36% -0.044 0.1456)
OKLCHoklch(81.36% 0.152 106.8)
XYZxyz(47.0351, 54.8021, 12.9498)
Luminance0.5480 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC840 #4046CE
analogous
#CE8140 #CEC840 #8DCE40
triadic
#CEC840 #40CEC8 #C840CE
tetradic
#CEC840 #40CE81 #4046CE #CE408D
square
#CEC840 #40CE81 #4046CE #CE408D
split-complementary
#CEC840 #408DCE #8140CE
monochromatic
#75721E #A6A12B #CEC840 #DAD671 #E7E4A1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEC840#FFFFFF#000000##000000
##CEC8401.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)
#D9C02B
Deuteranopia (green-blind)
#DCC649
Tritanopia (blue-blind)
#DDBBAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec840;
/* rgb */ color: rgb(206, 200, 64);
/* oklch */ color: oklch(81.4% 0.152 106.8);
Tailwind
colors: {
  custom: {
    50: '#e0d87d',
    500: '#cec840',
    950: '#000000',
  },
}
SCSS
$custom: #cec840;
$custom-light: #e0d87d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec840",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 64
  },
  "hsl": {
    "h": 57.465,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.81364,
    "c": 0.15211,
    "h": 106.8
  },
  "luminance": 0.54801
}

Semantic roles & 50–950 ramp

primary
#CEC840
secondary
#34377E
accent
#4CE245
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC840

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

Preview Lab → · Contrast checker → · Palette generator →

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