#CEC74B#CEC74B

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

Color values

HEX#CEC74B
RGBrgb(206, 199, 75)
HSLhsl(57, 57%, 55%)
HSVhsv(57, 64%, 81%)
CMYKcmyk(0%, 3.4%, 63.6%, 19.2%)
CIE-LABlab(78.74, -12.56, 60.77)
CIE-LCHlch(78.74, 62.06, 101.67°)
OKLaboklab(81.24% -0.0397 0.1378)
OKLCHoklch(81.24% 0.143 106.1)
XYZxyz(47.1487, 54.4783, 14.6870)
Luminance0.5448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC74B #4B52CE
analogous
#CE864B #CEC74B #93CE4B
triadic
#CEC74B #4BCEC7 #C74BCE
tetradic
#CEC74B #4BCE86 #4B52CE #CE4B93
square
#CEC74B #4BCE86 #4B52CE #CE4B93
split-complementary
#CEC74B #4B93CE #864BCE
monochromatic
#7D7822 #ADA62F #CEC74B #DBD67B #E8E5AB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEC74B#FFFFFF#000000##000000
##CEC74B1.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)
#D7C03B
Deuteranopia (green-blind)
#DAC552
Tritanopia (blue-blind)
#DCBAAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec74b;
/* rgb */ color: rgb(206, 199, 75);
/* oklch */ color: oklch(81.2% 0.143 106.1);
Tailwind
colors: {
  custom: {
    50: '#e0d783',
    500: '#cec74b',
    950: '#000000',
  },
}
SCSS
$custom: #cec74b;
$custom-light: #e0d783;
$custom-dark: #000000;
JSON
{
  "hex": "#cec74b",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 75
  },
  "hsl": {
    "h": 56.794,
    "s": 57.205,
    "l": 55.098
  },
  "oklch": {
    "l": 0.8124,
    "c": 0.14338,
    "h": 106.1
  },
  "luminance": 0.54477
}

Semantic roles & 50–950 ramp

primary
#CEC74B
secondary
#393D84
accent
#50E047
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC74B

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

Preview Lab → · Contrast checker → · Palette generator →

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