#CEC048#CEC048

#CEC048 is a light, vivid yellow. Relative luminance 0.513; OKLCH L 79.7% C 0.139 H 102.6°. Best body text is #000000 at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#CEC048
RGBrgb(206, 192, 72)
HSLhsl(54, 58%, 55%)
HSVhsv(54, 65%, 81%)
CMYKcmyk(0%, 6.8%, 65%, 19.2%)
CIE-LABlab(76.85, -9.17, 60.04)
CIE-LCHlch(76.85, 60.73, 98.69°)
OKLaboklab(79.73% -0.0304 0.1358)
OKLCHoklch(79.73% 0.139 102.6)
XYZxyz(45.4748, 51.2908, 13.6344)
Luminance0.5129 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC048 #4856CE
analogous
#CE7D48 #CEC048 #99CE48
triadic
#CEC048 #48CEC0 #C048CE
tetradic
#CEC048 #48CE7D #4856CE #CE4899
square
#CEC048 #48CE7D #4856CE #CE4899
split-complementary
#CEC048 #4899CE #7D48CE
monochromatic
#7B7121 #AB9E2E #CEC048 #DBD178 #E8E1A9

Accessibility & contrast

On white

1.87
#CEC048 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.26
#CEC048 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC048
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC048#FFFFFF#000000##000000
##CEC0481.001.8711.2611.26
#FFFFFF1.871.0021.0021.00
#00000011.2621.001.001.00
##00000011.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BA39
Deuteranopia (green-blind)
#D5C14F
Tritanopia (blue-blind)
#DDB3A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec048;
/* rgb */ color: rgb(206, 192, 72);
/* oklch */ color: oklch(79.7% 0.139 102.6);
Tailwind
colors: {
  custom: {
    50: '#e0d281',
    500: '#cec048',
    950: '#000000',
  },
}
SCSS
$custom: #cec048;
$custom-light: #e0d281;
$custom-dark: #000000;
JSON
{
  "hex": "#cec048",
  "rgb": {
    "r": 206,
    "g": 192,
    "b": 72
  },
  "hsl": {
    "h": 53.731,
    "s": 57.759,
    "l": 54.51
  },
  "oklch": {
    "l": 0.79733,
    "c": 0.13912,
    "h": 102.6
  },
  "luminance": 0.51289
}

Semantic roles & 50–950 ramp

primary
#CEC048
secondary
#373F83
accent
#57E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC048

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

Preview Lab → · Contrast checker → · Palette generator →

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