#CEC852#CEC852

#CEC852 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.5% C 0.139 H 106.4°. Best body text is #000000 at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#CEC852
RGBrgb(206, 200, 82)
HSLhsl(57, 56%, 56%)
HSVhsv(57, 60%, 81%)
CMYKcmyk(0%, 2.9%, 60.2%, 19.2%)
CIE-LABlab(79.06, -12.61, 58.15)
CIE-LCHlch(79.06, 59.51, 102.23°)
OKLaboklab(81.52% -0.0391 0.1332)
OKLCHoklch(81.52% 0.139 106.4)
XYZxyz(47.6324, 55.0411, 16.0959)
Luminance0.5504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC852 #5258CE
analogous
#CE8A52 #CEC852 #96CE52
triadic
#CEC852 #52CEC8 #C852CE
tetradic
#CEC852 #52CE8A #5258CE #CE5296
square
#CEC852 #52CE8A #5258CE #CE5296
split-complementary
#CEC852 #5296CE #8A52CE
monochromatic
#817D25 #B1AB32 #CEC852 #DCD782 #E9E6B1

Accessibility & contrast

On white

1.75
#CEC852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.01
#CEC852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC852
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC852#FFFFFF#000000##000000
##CEC8521.001.7512.0112.01
#FFFFFF1.751.0021.0021.00
#00000012.0121.001.001.00
##00000012.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C144
Deuteranopia (green-blind)
#DAC659
Tritanopia (blue-blind)
#DCBCAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec852;
/* rgb */ color: rgb(206, 200, 82);
/* oklch */ color: oklch(81.5% 0.139 106.4);
Tailwind
colors: {
  custom: {
    50: '#e0d887',
    500: '#cec852',
    950: '#000000',
  },
}
SCSS
$custom: #cec852;
$custom-light: #e0d887;
$custom-dark: #000000;
JSON
{
  "hex": "#cec852",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 57.097,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81517,
    "c": 0.13884,
    "h": 106.4
  },
  "luminance": 0.5504
}

Semantic roles & 50–950 ramp

primary
#CEC852
secondary
#3C3F88
accent
#50DF49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC852

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

Preview Lab → · Contrast checker → · Palette generator →

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