#CEC74A#CEC74A

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

Color values

HEX#CEC74A
RGBrgb(206, 199, 74)
HSLhsl(57, 57%, 55%)
HSVhsv(57, 64%, 81%)
CMYKcmyk(0%, 3.4%, 64.1%, 19.2%)
CIE-LABlab(78.73, -12.62, 61.18)
CIE-LCHlch(78.73, 62.47, 101.65°)
OKLaboklab(81.23% -0.04 0.1385)
OKLCHoklch(81.23% 0.144 106.1)
XYZxyz(47.1147, 54.4647, 14.5082)
Luminance0.5446 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC74A #4A51CE
analogous
#CE854A #CEC74A #93CE4A
triadic
#CEC74A #4ACEC7 #C74ACE
tetradic
#CEC74A #4ACE85 #4A51CE #CE4A93
square
#CEC74A #4ACE85 #4A51CE #CE4A93
split-complementary
#CEC74A #4A93CE #854ACE
monochromatic
#7C7722 #ACA62F #CEC74A #DBD67A #E8E5AA

Accessibility & contrast

On white

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

On black

11.89
#CEC74A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC74A
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC74A#FFFFFF#000000##000000
##CEC74A1.001.7711.8911.89
#FFFFFF1.771.0021.0021.00
#00000011.8921.001.001.00
##00000011.8921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec74a;
/* rgb */ color: rgb(206, 199, 74);
/* oklch */ color: oklch(81.2% 0.144 106.1);
Tailwind
colors: {
  custom: {
    50: '#e0d782',
    500: '#cec74a',
    950: '#000000',
  },
}
SCSS
$custom: #cec74a;
$custom-light: #e0d782;
$custom-dark: #000000;
JSON
{
  "hex": "#cec74a",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 74
  },
  "hsl": {
    "h": 56.818,
    "s": 57.391,
    "l": 54.902
  },
  "oklch": {
    "l": 0.81231,
    "c": 0.14413,
    "h": 106.1
  },
  "luminance": 0.54463
}

Semantic roles & 50–950 ramp

primary
#CEC74A
secondary
#383C84
accent
#4FE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC74A

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

Preview Lab → · Contrast checker → · Palette generator →

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