#CEC752#CEC752

#CEC752 is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.3% C 0.138 H 105.9°. Best body text is #000000 at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#CEC752
RGBrgb(206, 199, 82)
HSLhsl(57, 56%, 56%)
HSVhsv(57, 60%, 81%)
CMYKcmyk(0%, 3.4%, 60.2%, 19.2%)
CIE-LABlab(78.80, -12.10, 57.86)
CIE-LCHlch(78.80, 59.12, 101.81°)
OKLaboklab(81.31% -0.0377 0.1326)
OKLCHoklch(81.31% 0.138 105.9)
XYZxyz(47.4016, 54.5794, 16.0190)
Luminance0.5458 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC752 #5259CE
analogous
#CE8952 #CEC752 #97CE52
triadic
#CEC752 #52CEC7 #C752CE
tetradic
#CEC752 #52CE89 #5259CE #CE5297
square
#CEC752 #52CE89 #5259CE #CE5297
split-complementary
#CEC752 #5297CE #8952CE
monochromatic
#817C25 #B1AA32 #CEC752 #DCD682 #E9E6B1

Accessibility & contrast

On white

1.76
#CEC752 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.92
#CEC752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC752
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC752#FFFFFF#000000##000000
##CEC7521.001.7611.9211.92
#FFFFFF1.761.0021.0021.00
#00000011.9221.001.001.00
##00000011.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C045
Deuteranopia (green-blind)
#DAC559
Tritanopia (blue-blind)
#DCBBAE
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec752;
/* rgb */ color: rgb(206, 199, 82);
/* oklch */ color: oklch(81.3% 0.138 105.9);
Tailwind
colors: {
  custom: {
    50: '#e0d787',
    500: '#cec752',
    950: '#000000',
  },
}
SCSS
$custom: #cec752;
$custom-light: #e0d787;
$custom-dark: #000000;
JSON
{
  "hex": "#cec752",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 82
  },
  "hsl": {
    "h": 56.613,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81305,
    "c": 0.13784,
    "h": 105.9
  },
  "luminance": 0.54578
}

Semantic roles & 50–950 ramp

primary
#CEC752
secondary
#3C4088
accent
#51DF49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC752

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

Preview Lab → · Contrast checker → · Palette generator →

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