#CEC74C#CEC74C

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

Color values

HEX#CEC74C
RGBrgb(206, 199, 76)
HSLhsl(57, 57%, 55%)
HSVhsv(57, 63%, 81%)
CMYKcmyk(0%, 3.4%, 63.1%, 19.2%)
CIE-LABlab(78.75, -12.49, 60.37)
CIE-LCHlch(78.75, 61.65, 101.69°)
OKLaboklab(81.25% -0.0394 0.1371)
OKLCHoklch(81.25% 0.143 106)
XYZxyz(47.1832, 54.4921, 14.8687)
Luminance0.5449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC74C #4C53CE
analogous
#CE864C #CEC74C #94CE4C
triadic
#CEC74C #4CCEC7 #C74CCE
tetradic
#CEC74C #4CCE86 #4C53CE #CE4C94
square
#CEC74C #4CCE86 #4C53CE #CE4C94
split-complementary
#CEC74C #4C94CE #864CCE
monochromatic
#7D7822 #ADA72F #CEC74C #DBD67C #E8E5AC

Accessibility & contrast

On white

1.77
#CEC74C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEC74C#FFFFFF#000000##000000
##CEC74C1.001.7711.9011.90
#FFFFFF1.771.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C03D
Deuteranopia (green-blind)
#DAC553
Tritanopia (blue-blind)
#DCBAAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec74c;
/* rgb */ color: rgb(206, 199, 76);
/* oklch */ color: oklch(81.2% 0.143 106.0);
Tailwind
colors: {
  custom: {
    50: '#e0d784',
    500: '#cec74c',
    950: '#000000',
  },
}
SCSS
$custom: #cec74c;
$custom-light: #e0d784;
$custom-dark: #000000;
JSON
{
  "hex": "#cec74c",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 76
  },
  "hsl": {
    "h": 56.769,
    "s": 57.018,
    "l": 55.294
  },
  "oklch": {
    "l": 0.81249,
    "c": 0.14262,
    "h": 106
  },
  "luminance": 0.5449
}

Semantic roles & 50–950 ramp

primary
#CEC74C
secondary
#393D85
accent
#50E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC74C

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

Preview Lab → · Contrast checker → · Palette generator →

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