#CEC778#CEC778

#CEC778 is a light, moderate yellow. Relative luminance 0.553; OKLCH L 81.8% C 0.101 H 104.0°. Best body text is #000000 at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#CEC778
RGBrgb(206, 199, 120)
HSLhsl(55, 47%, 64%)
HSVhsv(55, 42%, 81%)
CMYKcmyk(0%, 3.4%, 41.7%, 19.2%)
CIE-LABlab(79.23, -8.82, 40.35)
CIE-LCHlch(79.23, 41.30, 102.33°)
OKLaboklab(81.79% -0.0244 0.0979)
OKLCHoklch(81.79% 0.101 104)
XYZxyz(49.2681, 55.3260, 25.8493)
Luminance0.5533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC778 #787FCE
analogous
#CE9C78 #CEC778 #AACE78
triadic
#CEC778 #78CEC7 #C778CE
tetradic
#CEC778 #78CE9C #787FCE #CE78AA
square
#CEC778 #78CE9C #787FCE #CE78AA
split-complementary
#CEC778 #78AACE #9C78CE
monochromatic
#958E36 #BEB44B #CEC778 #DEDAA5 #EFECD2

Accessibility & contrast

On white

1.74
#CEC778 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.07
#CEC778 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC778
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC778#FFFFFF#000000##000000
##CEC7781.001.7412.0712.07
#FFFFFF1.741.0021.0021.00
#00000012.0721.001.001.00
##00000012.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4C272
Deuteranopia (green-blind)
#D6C67B
Tritanopia (blue-blind)
#DABDB4
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec778;
/* rgb */ color: rgb(206, 199, 120);
/* oklch */ color: oklch(81.8% 0.101 104.0);
Tailwind
colors: {
  custom: {
    50: '#ded7a0',
    500: '#cec778',
    950: '#000000',
  },
}
SCSS
$custom: #cec778;
$custom-light: #ded7a0;
$custom-dark: #000000;
JSON
{
  "hex": "#cec778",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 120
  },
  "hsl": {
    "h": 55.116,
    "s": 46.739,
    "l": 63.922
  },
  "oklch": {
    "l": 0.81786,
    "c": 0.10087,
    "h": 104
  },
  "luminance": 0.55325
}

Semantic roles & 50–950 ramp

primary
#CEC778
secondary
#4F559B
accent
#37BA2C
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CEC778

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

Preview Lab → · Contrast checker → · Palette generator →

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