#CEC474#CEC474

#CEC474 is a light, moderate yellow. Relative luminance 0.539; OKLCH L 81.1% C 0.102 H 102.1°. Best body text is #000000 at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#CEC474
RGBrgb(206, 196, 116)
HSLhsl(53, 48%, 63%)
HSVhsv(53, 44%, 81%)
CMYKcmyk(0%, 4.9%, 43.7%, 19.2%)
CIE-LABlab(78.38, -7.69, 41.30)
CIE-LCHlch(78.38, 42.01, 100.55°)
OKLaboklab(81.1% -0.0215 0.0998)
OKLCHoklch(81.1% 0.102 102.1)
XYZxyz(48.3470, 53.8640, 24.3696)
Luminance0.5386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC474 #747ECE
analogous
#CE9774 #CEC474 #ABCE74
triadic
#CEC474 #74CEC4 #C474CE
tetradic
#CEC474 #74CE97 #747ECE #CE74AB
square
#CEC474 #74CE97 #747ECE #CE74AB
split-complementary
#CEC474 #74ABCE #9774CE
monochromatic
#948934 #BEB147 #CEC474 #DED7A1 #EEEACE

Accessibility & contrast

On white

1.78
#CEC474 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.77
#CEC474 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC474
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC474#FFFFFF#000000##000000
##CEC4741.001.7811.7711.77
#FFFFFF1.781.0021.0021.00
#00000011.7721.001.001.00
##00000011.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BF6E
Deuteranopia (green-blind)
#D5C477
Tritanopia (blue-blind)
#DABAB1
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cec474;
/* rgb */ color: rgb(206, 196, 116);
/* oklch */ color: oklch(81.1% 0.102 102.1);
Tailwind
colors: {
  custom: {
    50: '#ded59d',
    500: '#cec474',
    950: '#000000',
  },
}
SCSS
$custom: #cec474;
$custom-light: #ded59d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec474",
  "rgb": {
    "r": 206,
    "g": 196,
    "b": 116
  },
  "hsl": {
    "h": 53.333,
    "s": 47.872,
    "l": 63.137
  },
  "oklch": {
    "l": 0.81097,
    "c": 0.10207,
    "h": 102.1
  },
  "luminance": 0.53863
}

Semantic roles & 50–950 ramp

primary
#CEC474
secondary
#4D559A
accent
#3ABB2A
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140E
muted
#84837F

Preview Lab

Preview with #CEC474

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

Preview Lab → · Contrast checker → · Palette generator →

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