#CEC85F#CEC85F

#CEC85F is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.7% C 0.127 H 105.9°. Best body text is #000000 at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#CEC85F
RGBrgb(206, 200, 95)
HSLhsl(57, 53%, 59%)
HSVhsv(57, 54%, 81%)
CMYKcmyk(0%, 2.9%, 53.9%, 19.2%)
CIE-LABlab(79.19, -11.65, 52.45)
CIE-LCHlch(79.19, 53.73, 102.52°)
OKLaboklab(81.66% -0.0349 0.1226)
OKLCHoklch(81.66% 0.127 105.9)
XYZxyz(48.1748, 55.2580, 18.9524)
Luminance0.5526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC85F #5F65CE
analogous
#CE915F #CEC85F #9DCE5F
triadic
#CEC85F #5FCEC8 #C85FCE
tetradic
#CEC85F #5FCE91 #5F65CE #CE5F9D
square
#CEC85F #5FCE91 #5F65CE #CE5F9D
split-complementary
#CEC85F #5F9DCE #915FCE
monochromatic
#89842A #B8B138 #CEC85F #DCD88E #EBE8BD

Accessibility & contrast

On white

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

On black

12.05
#CEC85F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC85F
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC85F#FFFFFF#000000##000000
##CEC85F1.001.7412.0512.05
#FFFFFF1.741.0021.0021.00
#00000012.0521.001.001.00
##00000012.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C155
Deuteranopia (green-blind)
#DAC664
Tritanopia (blue-blind)
#DBBDB1
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec85f;
/* rgb */ color: rgb(206, 200, 95);
/* oklch */ color: oklch(81.7% 0.127 105.9);
Tailwind
colors: {
  custom: {
    50: '#dfd88f',
    500: '#cec85f',
    950: '#000000',
  },
}
SCSS
$custom: #cec85f;
$custom-light: #dfd88f;
$custom-dark: #000000;
JSON
{
  "hex": "#cec85f",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 95
  },
  "hsl": {
    "h": 56.757,
    "s": 53.11,
    "l": 59.02
  },
  "oklch": {
    "l": 0.81657,
    "c": 0.12746,
    "h": 105.9
  },
  "luminance": 0.55257
}

Semantic roles & 50–950 ramp

primary
#CEC85F
secondary
#42468F
accent
#53DD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CEC85F

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

Preview Lab → · Contrast checker → · Palette generator →

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