#CEC047#CEC047

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

Color values

HEX#CEC047
RGBrgb(206, 192, 71)
HSLhsl(54, 58%, 54%)
HSVhsv(54, 66%, 81%)
CMYKcmyk(0%, 6.8%, 65.5%, 19.2%)
CIE-LABlab(76.85, -9.23, 60.44)
CIE-LCHlch(76.85, 61.14, 98.68°)
OKLaboklab(79.72% -0.0307 0.1364)
OKLCHoklch(79.72% 0.14 102.7)
XYZxyz(45.4424, 51.2778, 13.4640)
Luminance0.5128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC047 #4755CE
analogous
#CE7D47 #CEC047 #99CE47
triadic
#CEC047 #47CEC0 #C047CE
tetradic
#CEC047 #47CE7D #4755CE #CE4799
square
#CEC047 #47CE7D #4755CE #CE4799
split-complementary
#CEC047 #4799CE #7D47CE
monochromatic
#7A7121 #AA9D2D #CEC047 #DBD177 #E8E1A8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEC047#FFFFFF#000000##000000
##CEC0471.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)
#D1BA37
Deuteranopia (green-blind)
#D5C14E
Tritanopia (blue-blind)
#DDB3A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec047;
/* rgb */ color: rgb(206, 192, 71);
/* oklch */ color: oklch(79.7% 0.140 102.7);
Tailwind
colors: {
  custom: {
    50: '#e0d280',
    500: '#cec047',
    950: '#000000',
  },
}
SCSS
$custom: #cec047;
$custom-light: #e0d280;
$custom-dark: #000000;
JSON
{
  "hex": "#cec047",
  "rgb": {
    "r": 206,
    "g": 192,
    "b": 71
  },
  "hsl": {
    "h": 53.778,
    "s": 57.94,
    "l": 54.314
  },
  "oklch": {
    "l": 0.79724,
    "c": 0.13987,
    "h": 102.7
  },
  "luminance": 0.51276
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CEC047

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

Preview Lab → · Contrast checker → · Palette generator →

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