#CEC74F#CEC74F

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

Color values

HEX#CEC74F
RGBrgb(206, 199, 79)
HSLhsl(57, 56%, 56%)
HSVhsv(57, 62%, 81%)
CMYKcmyk(0%, 3.4%, 61.7%, 19.2%)
CIE-LABlab(78.77, -12.30, 59.13)
CIE-LCHlch(78.77, 60.39, 101.75°)
OKLaboklab(81.28% -0.0386 0.1349)
OKLCHoklch(81.28% 0.14 106)
XYZxyz(47.2899, 54.5347, 15.4308)
Luminance0.5453 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC74F #4F56CE
analogous
#CE874F #CEC74F #95CE4F
triadic
#CEC74F #4FCEC7 #C74FCE
tetradic
#CEC74F #4FCE87 #4F56CE #CE4F95
square
#CEC74F #4FCE87 #4F56CE #CE4F95
split-complementary
#CEC74F #4F95CE #874FCE
monochromatic
#7F7A23 #AFA831 #CEC74F #DBD67F #E9E5AF

Accessibility & contrast

On white

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

On black

11.91
#CEC74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC74F
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC74F#FFFFFF#000000##000000
##CEC74F1.001.7611.9111.91
#FFFFFF1.761.0021.0021.00
#00000011.9121.001.001.00
##00000011.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec74f;
/* rgb */ color: rgb(206, 199, 79);
/* oklch */ color: oklch(81.3% 0.140 106.0);
Tailwind
colors: {
  custom: {
    50: '#e0d785',
    500: '#cec74f',
    950: '#000000',
  },
}
SCSS
$custom: #cec74f;
$custom-light: #e0d785;
$custom-dark: #000000;
JSON
{
  "hex": "#cec74f",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 79
  },
  "hsl": {
    "h": 56.693,
    "s": 56.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81276,
    "c": 0.14027,
    "h": 106
  },
  "luminance": 0.54533
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CEC74F

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

Preview Lab → · Contrast checker → · Palette generator →

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