#CEC652#CEC652

#CEC652 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 81.1% C 0.137 H 105.3°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#CEC652
RGBrgb(206, 198, 82)
HSLhsl(56, 56%, 56%)
HSVhsv(56, 60%, 81%)
CMYKcmyk(0%, 3.9%, 60.2%, 19.2%)
CIE-LABlab(78.53, -11.60, 57.57)
CIE-LCHlch(78.53, 58.73, 101.39°)
OKLaboklab(81.09% -0.0362 0.132)
OKLCHoklch(81.09% 0.137 105.3)
XYZxyz(47.1723, 54.1208, 15.9425)
Luminance0.5412 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC652 #525ACE
analogous
#CE8852 #CEC652 #98CE52
triadic
#CEC652 #52CEC6 #C652CE
tetradic
#CEC652 #52CE88 #525ACE #CE5298
square
#CEC652 #52CE88 #525ACE #CE5298
split-complementary
#CEC652 #5298CE #8852CE
monochromatic
#817B25 #B1A932 #CEC652 #DCD682 #E9E5B1

Accessibility & contrast

On white

1.78
#CEC652 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.82
#CEC652 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC652
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC652#FFFFFF#000000##000000
##CEC6521.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF45
Deuteranopia (green-blind)
#D9C558
Tritanopia (blue-blind)
#DCBAAD
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cec652;
/* rgb */ color: rgb(206, 198, 82);
/* oklch */ color: oklch(81.1% 0.137 105.3);
Tailwind
colors: {
  custom: {
    50: '#e0d787',
    500: '#cec652',
    950: '#000000',
  },
}
SCSS
$custom: #cec652;
$custom-light: #e0d787;
$custom-dark: #000000;
JSON
{
  "hex": "#cec652",
  "rgb": {
    "r": 206,
    "g": 198,
    "b": 82
  },
  "hsl": {
    "h": 56.129,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81093,
    "c": 0.13686,
    "h": 105.3
  },
  "luminance": 0.54119
}

Semantic roles & 50–950 ramp

primary
#CEC652
secondary
#3C4188
accent
#52DF49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC652

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

Preview Lab → · Contrast checker → · Palette generator →

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