#ECD87D#ECD87D

#ECD87D is a very light, moderate yellow. Relative luminance 0.684; OKLCH L 88.0% C 0.114 H 97.3°. Best body text is #000000 at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#ECD87D
RGBrgb(236, 216, 125)
HSLhsl(49, 74%, 71%)
HSVhsv(49, 47%, 93%)
CMYKcmyk(0%, 8.5%, 47%, 7.5%)
CIE-LABlab(86.22, -5.00, 47.13)
CIE-LCHlch(86.22, 47.39, 96.05°)
OKLaboklab(87.95% -0.0144 0.1131)
OKLCHoklch(87.95% 0.114 97.3)
XYZxyz(62.8514, 68.4276, 29.2952)
Luminance0.6843 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD87D #7D91EC
analogous
#ECA07D #ECD87D #C8EC7D
triadic
#ECD87D #7DECD8 #D87DEC
tetradic
#ECD87D #7DECA0 #7D91EC #EC7DC8
square
#ECD87D #7DECA0 #7D91EC #EC7DC8
split-complementary
#ECD87D #7DC8EC #A07DEC
monochromatic
#D0B01E #E4C848 #ECD87D #F4E8B2 #FBF7E4

Accessibility & contrast

On white

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

On black

14.69
#ECD87D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD87D
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD87D#FFFFFF#000000##000000
##ECD87D1.001.4314.6914.69
#FFFFFF1.431.0021.0021.00
#00000014.6921.001.001.00
##00000014.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D475
Deuteranopia (green-blind)
#EEDB81
Tritanopia (blue-blind)
#FBCCC2
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #ecd87d;
/* rgb */ color: rgb(236, 216, 125);
/* oklch */ color: oklch(88.0% 0.114 97.3);
Tailwind
colors: {
  custom: {
    50: '#f4e3a4',
    500: '#ecd87d',
    950: '#000000',
  },
}
SCSS
$custom: #ecd87d;
$custom-light: #f4e3a4;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd87d",
  "rgb": {
    "r": 236,
    "g": 216,
    "b": 125
  },
  "hsl": {
    "h": 49.189,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.87951,
    "c": 0.11398,
    "h": 97.3
  },
  "luminance": 0.68425
}

Semantic roles & 50–950 ramp

primary
#ECD87D
secondary
#485EC5
accent
#33D70F
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #ECD87D

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

Preview Lab → · Contrast checker → · Palette generator →

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