#CEC462#CEC462

#CEC462 is a light, vivid yellow. Relative luminance 0.535; OKLCH L 80.8% C 0.121 H 103.5°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#CEC462
RGBrgb(206, 196, 98)
HSLhsl(54, 52%, 60%)
HSVhsv(54, 52%, 81%)
CMYKcmyk(0%, 4.9%, 52.4%, 19.2%)
CIE-LABlab(78.16, -9.36, 49.84)
CIE-LCHlch(78.16, 50.72, 100.64°)
OKLaboklab(80.85% -0.0281 0.1172)
OKLCHoklch(80.85% 0.121 103.5)
XYZxyz(47.3995, 53.4851, 19.3797)
Luminance0.5348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC462 #626CCE
analogous
#CE8E62 #CEC462 #A2CE62
triadic
#CEC462 #62CEC4 #C462CE
tetradic
#CEC462 #62CE8E #626CCE #CE62A2
square
#CEC462 #62CE8E #626CCE #CE62A2
split-complementary
#CEC462 #62A2CE #8E62CE
monochromatic
#8A822B #B9AD3A #CEC462 #DDD691 #EBE7BF

Accessibility & contrast

On white

1.80
#CEC462 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.70
#CEC462 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC462
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC462#FFFFFF#000000##000000
##CEC4621.001.8011.7011.70
#FFFFFF1.801.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BE59
Deuteranopia (green-blind)
#D6C467
Tritanopia (blue-blind)
#DBB9AE
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec462;
/* rgb */ color: rgb(206, 196, 98);
/* oklch */ color: oklch(80.8% 0.121 103.5);
Tailwind
colors: {
  custom: {
    50: '#dfd591',
    500: '#cec462',
    950: '#000000',
  },
}
SCSS
$custom: #cec462;
$custom-light: #dfd591;
$custom-dark: #000000;
JSON
{
  "hex": "#cec462",
  "rgb": {
    "r": 206,
    "g": 196,
    "b": 98
  },
  "hsl": {
    "h": 54.444,
    "s": 52.427,
    "l": 59.608
  },
  "oklch": {
    "l": 0.80849,
    "c": 0.12055,
    "h": 103.5
  },
  "luminance": 0.53484
}

Semantic roles & 50–950 ramp

primary
#CEC462
secondary
#434A91
accent
#59DC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CEC462

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

Preview Lab → · Contrast checker → · Palette generator →

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