#CEC85B#CEC85B

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

Color values

HEX#CEC85B
RGBrgb(206, 200, 91)
HSLhsl(57, 54%, 58%)
HSVhsv(57, 56%, 81%)
CMYKcmyk(0%, 2.9%, 55.8%, 19.2%)
CIE-LABlab(79.15, -11.96, 54.24)
CIE-LCHlch(79.15, 55.55, 102.43°)
OKLaboklab(81.61% -0.0363 0.126)
OKLCHoklch(81.61% 0.131 106.1)
XYZxyz(47.9976, 55.1872, 18.0193)
Luminance0.5519 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC85B #5B61CE
analogous
#CE8E5B #CEC85B #9ACE5B
triadic
#CEC85B #5BCEC8 #C85BCE
tetradic
#CEC85B #5BCE8E #5B61CE #CE5B9A
square
#CEC85B #5BCE8E #5B61CE #CE5B9A
split-complementary
#CEC85B #5B9ACE #8E5BCE
monochromatic
#868228 #B6AF36 #CEC85B #DCD88A #EAE8B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEC85B#FFFFFF#000000##000000
##CEC85B1.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)
#D7C150
Deuteranopia (green-blind)
#DAC661
Tritanopia (blue-blind)
#DBBCB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec85b;
/* rgb */ color: rgb(206, 200, 91);
/* oklch */ color: oklch(81.6% 0.131 106.1);
Tailwind
colors: {
  custom: {
    50: '#dfd88d',
    500: '#cec85b',
    950: '#000000',
  },
}
SCSS
$custom: #cec85b;
$custom-light: #dfd88d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec85b",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 91
  },
  "hsl": {
    "h": 56.87,
    "s": 53.991,
    "l": 58.235
  },
  "oklch": {
    "l": 0.81611,
    "c": 0.13111,
    "h": 106.1
  },
  "luminance": 0.55186
}

Semantic roles & 50–950 ramp

primary
#CEC85B
secondary
#40448D
accent
#52DD4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC85B

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

Preview Lab → · Contrast checker → · Palette generator →

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