#CEC74D#CEC74D

#CEC74D is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.3% C 0.142 H 106.0°. Best body text is #000000 at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#CEC74D
RGBrgb(206, 199, 77)
HSLhsl(57, 57%, 55%)
HSVhsv(57, 63%, 81%)
CMYKcmyk(0%, 3.4%, 62.6%, 19.2%)
CIE-LABlab(78.76, -12.43, 59.96)
CIE-LCHlch(78.76, 61.23, 101.71°)
OKLaboklab(81.26% -0.0391 0.1363)
OKLCHoklch(81.26% 0.142 106)
XYZxyz(47.2182, 54.5061, 15.0532)
Luminance0.5450 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC74D #4D54CE
analogous
#CE864D #CEC74D #94CE4D
triadic
#CEC74D #4DCEC7 #C74DCE
tetradic
#CEC74D #4DCE86 #4D54CE #CE4D94
square
#CEC74D #4DCE86 #4D54CE #CE4D94
split-complementary
#CEC74D #4D94CE #864DCE
monochromatic
#7E7923 #AEA730 #CEC74D #DBD67D #E8E5AD

Accessibility & contrast

On white

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

On black

11.90
#CEC74D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC74D
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC74D#FFFFFF#000000##000000
##CEC74D1.001.7611.9011.90
#FFFFFF1.761.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C03E
Deuteranopia (green-blind)
#DAC554
Tritanopia (blue-blind)
#DCBBAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec74d;
/* rgb */ color: rgb(206, 199, 77);
/* oklch */ color: oklch(81.3% 0.142 106.0);
Tailwind
colors: {
  custom: {
    50: '#e0d784',
    500: '#cec74d',
    950: '#000000',
  },
}
SCSS
$custom: #cec74d;
$custom-light: #e0d784;
$custom-dark: #000000;
JSON
{
  "hex": "#cec74d",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 77
  },
  "hsl": {
    "h": 56.744,
    "s": 56.828,
    "l": 55.49
  },
  "oklch": {
    "l": 0.81258,
    "c": 0.14185,
    "h": 106
  },
  "luminance": 0.54504
}

Semantic roles & 50–950 ramp

primary
#CEC74D
secondary
#3A3E86
accent
#50E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC74D

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

Preview Lab → · Contrast checker → · Palette generator →

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