#CEC252#CEC252

#CEC252 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.2% C 0.133 H 103.2°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#CEC252
RGBrgb(206, 194, 82)
HSLhsl(54, 56%, 56%)
HSVhsv(54, 60%, 81%)
CMYKcmyk(0%, 5.8%, 60.2%, 19.2%)
CIE-LABlab(77.47, -9.56, 56.41)
CIE-LCHlch(77.47, 57.21, 99.62°)
OKLaboklab(80.25% -0.0304 0.1295)
OKLCHoklch(80.25% 0.133 103.2)
XYZxyz(46.2700, 52.3163, 15.6418)
Luminance0.5232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC252 #525ECE
analogous
#CE8452 #CEC252 #9CCE52
triadic
#CEC252 #52CEC2 #C252CE
tetradic
#CEC252 #52CE84 #525ECE #CE529C
square
#CEC252 #52CE84 #525ECE #CE529C
split-complementary
#CEC252 #529CCE #8452CE
monochromatic
#817825 #B1A432 #CEC252 #DCD382 #E9E4B1

Accessibility & contrast

On white

1.83
#CEC252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.46
#CEC252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC252
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC252#FFFFFF#000000##000000
##CEC2521.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D6C258
Tritanopia (blue-blind)
#DCB6AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cec252;
/* rgb */ color: rgb(206, 194, 82);
/* oklch */ color: oklch(80.2% 0.133 103.2);
Tailwind
colors: {
  custom: {
    50: '#e0d487',
    500: '#cec252',
    950: '#000000',
  },
}
SCSS
$custom: #cec252;
$custom-light: #e0d487;
$custom-dark: #000000;
JSON
{
  "hex": "#cec252",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 54.194,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.80249,
    "c": 0.13302,
    "h": 103.2
  },
  "luminance": 0.52315
}

Semantic roles & 50–950 ramp

primary
#CEC252
secondary
#3C4388
accent
#57DF49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC252

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

Preview Lab → · Contrast checker → · Palette generator →

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