#CEC052#CEC052

#CEC052 is a light, vivid yellow. Relative luminance 0.514; OKLCH L 79.8% C 0.131 H 102.1°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#CEC052
RGBrgb(206, 192, 82)
HSLhsl(53, 56%, 56%)
HSVhsv(53, 60%, 81%)
CMYKcmyk(0%, 6.8%, 60.2%, 19.2%)
CIE-LABlab(76.94, -8.53, 55.83)
CIE-LCHlch(76.94, 56.47, 98.69°)
OKLaboklab(79.83% -0.0275 0.1283)
OKLCHoklch(79.83% 0.131 102.1)
XYZxyz(45.8279, 51.4321, 15.4944)
Luminance0.5143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC052 #5260CE
analogous
#CE8252 #CEC052 #9ECE52
triadic
#CEC052 #52CEC0 #C052CE
tetradic
#CEC052 #52CE82 #5260CE #CE529E
square
#CEC052 #52CE82 #5260CE #CE529E
split-complementary
#CEC052 #529ECE #8252CE
monochromatic
#817725 #B1A232 #CEC052 #DCD182 #E9E3B1

Accessibility & contrast

On white

1.86
#CEC052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.29
#CEC052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC052
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC052#FFFFFF#000000##000000
##CEC0521.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA46
Deuteranopia (green-blind)
#D4C158
Tritanopia (blue-blind)
#DDB4A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec052;
/* rgb */ color: rgb(206, 192, 82);
/* oklch */ color: oklch(79.8% 0.131 102.1);
Tailwind
colors: {
  custom: {
    50: '#e0d287',
    500: '#cec052',
    950: '#000000',
  },
}
SCSS
$custom: #cec052;
$custom-light: #e0d287;
$custom-dark: #000000;
JSON
{
  "hex": "#cec052",
  "rgb": {
    "r": 206,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 53.226,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.79828,
    "c": 0.13117,
    "h": 102.1
  },
  "luminance": 0.5143
}

Semantic roles & 50–950 ramp

primary
#CEC052
secondary
#3C4488
accent
#5ADF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC052

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

Preview Lab → · Contrast checker → · Palette generator →

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