#CEC85C#CEC85C

#CEC85C is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.6% C 0.130 H 106.0°. Best body text is #000000 at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#CEC85C
RGBrgb(206, 200, 92)
HSLhsl(57, 54%, 58%)
HSVhsv(57, 55%, 81%)
CMYKcmyk(0%, 2.9%, 55.3%, 19.2%)
CIE-LABlab(79.16, -11.88, 53.80)
CIE-LCHlch(79.16, 55.10, 102.45°)
OKLaboklab(81.62% -0.0359 0.1252)
OKLCHoklch(81.62% 0.13 106)
XYZxyz(48.0411, 55.2045, 18.2480)
Luminance0.5520 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC85C #5C62CE
analogous
#CE8F5C #CEC85C #9BCE5C
triadic
#CEC85C #5CCEC8 #C85CCE
tetradic
#CEC85C #5CCE8F #5C62CE #CE5C9B
square
#CEC85C #5CCE8F #5C62CE #CE5C9B
split-complementary
#CEC85C #5C9BCE #8F5CCE
monochromatic
#878229 #B6AF37 #CEC85C #DCD88B #EAE8BA

Accessibility & contrast

On white

1.74
#CEC85C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.04
#CEC85C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC85C
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC85C#FFFFFF#000000##000000
##CEC85C1.001.7412.0412.04
#FFFFFF1.741.0021.0021.00
#00000012.0421.001.001.00
##00000012.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C151
Deuteranopia (green-blind)
#DAC662
Tritanopia (blue-blind)
#DBBCB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec85c;
/* rgb */ color: rgb(206, 200, 92);
/* oklch */ color: oklch(81.6% 0.130 106.0);
Tailwind
colors: {
  custom: {
    50: '#dfd88e',
    500: '#cec85c',
    950: '#000000',
  },
}
SCSS
$custom: #cec85c;
$custom-light: #dfd88e;
$custom-dark: #000000;
JSON
{
  "hex": "#cec85c",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 92
  },
  "hsl": {
    "h": 56.842,
    "s": 53.774,
    "l": 58.431
  },
  "oklch": {
    "l": 0.81623,
    "c": 0.13021,
    "h": 106
  },
  "luminance": 0.55203
}

Semantic roles & 50–950 ramp

primary
#CEC85C
secondary
#40448E
accent
#52DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CEC85C

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

Preview Lab → · Contrast checker → · Palette generator →

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