#ECD878#ECD878

#ECD878 is a very light, moderate yellow. Relative luminance 0.683; OKLCH L 87.9% C 0.119 H 97.8°. Best body text is #000000 at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#ECD878
RGBrgb(236, 216, 120)
HSLhsl(50, 75%, 70%)
HSVhsv(50, 49%, 93%)
CMYKcmyk(0%, 8.5%, 49.2%, 7.5%)
CIE-LABlab(86.16, -5.45, 49.48)
CIE-LCHlch(86.16, 49.77, 96.28°)
OKLaboklab(87.88% -0.0162 0.1179)
OKLCHoklch(87.88% 0.119 97.8)
XYZxyz(62.5400, 68.3030, 27.6552)
Luminance0.6830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD878 #788CEC
analogous
#EC9E78 #ECD878 #C6EC78
triadic
#ECD878 #78ECD8 #D878EC
tetradic
#ECD878 #78EC9E #788CEC #EC78C6
square
#ECD878 #78EC9E #788CEC #EC78C6
split-complementary
#ECD878 #78C6EC #9E78EC
monochromatic
#CDAE1D #E4C942 #ECD878 #F4E7AE #FBF7E3

Accessibility & contrast

On white

1.43
#ECD878 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.66
#ECD878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD878
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD878#FFFFFF#000000##000000
##ECD8781.001.4314.6614.66
#FFFFFF1.431.0021.0021.00
#00000014.6621.001.001.00
##00000014.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D370
Deuteranopia (green-blind)
#EEDB7C
Tritanopia (blue-blind)
#FBCCC1
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #ecd878;
/* rgb */ color: rgb(236, 216, 120);
/* oklch */ color: oklch(87.9% 0.119 97.8);
Tailwind
colors: {
  custom: {
    50: '#f4e3a1',
    500: '#ecd878',
    950: '#000000',
  },
}
SCSS
$custom: #ecd878;
$custom-light: #f4e3a1;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd878",
  "rgb": {
    "r": 236,
    "g": 216,
    "b": 120
  },
  "hsl": {
    "h": 49.655,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.87882,
    "c": 0.119,
    "h": 97.8
  },
  "luminance": 0.68301
}

Semantic roles & 50–950 ramp

primary
#ECD878
secondary
#435AC5
accent
#31D70E
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #ECD878

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

Preview Lab → · Contrast checker → · Palette generator →

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