#ECD987#ECD987

#ECD987 is a very light, moderate yellow. Relative luminance 0.692; OKLCH L 88.3% C 0.104 H 96.7°. Best body text is #000000 at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#ECD987
RGBrgb(236, 217, 135)
HSLhsl(49, 73%, 73%)
HSVhsv(49, 43%, 93%)
CMYKcmyk(0%, 8.1%, 42.8%, 7.5%)
CIE-LABlab(86.61, -4.53, 42.68)
CIE-LCHlch(86.61, 42.92, 96.06°)
OKLaboklab(88.3% -0.0122 0.1037)
OKLCHoklch(88.3% 0.104 96.7)
XYZxyz(63.7797, 69.2100, 32.9162)
Luminance0.6921 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#ECD987 #879AEC
analogous
#ECA687 #ECD987 #CCEC87
triadic
#ECD987 #87ECD9 #D987EC
tetradic
#ECD987 #87ECA6 #879AEC #EC87CC
square
#ECD987 #87ECA6 #879AEC #EC87CC
split-complementary
#ECD987 #87CCEC #A687EC
monochromatic
#D7B522 #E4C852 #ECD987 #F4EABC #FBF7E5

Accessibility & contrast

On white

1.41
#ECD987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.84
#ECD987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #ECD987
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##ECD987#FFFFFF#000000##000000
##ECD9871.001.4114.8414.84
#FFFFFF1.411.0021.0021.00
#00000014.8421.001.001.00
##00000014.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D581
Deuteranopia (green-blind)
#EDDC8A
Tritanopia (blue-blind)
#FACEC5
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #ecd987;
/* rgb */ color: rgb(236, 217, 135);
/* oklch */ color: oklch(88.3% 0.104 96.7);
Tailwind
colors: {
  custom: {
    50: '#f4e4ab',
    500: '#ecd987',
    950: '#000000',
  },
}
SCSS
$custom: #ecd987;
$custom-light: #f4e4ab;
$custom-dark: #000000;
JSON
{
  "hex": "#ecd987",
  "rgb": {
    "r": 236,
    "g": 217,
    "b": 135
  },
  "hsl": {
    "h": 48.713,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.88301,
    "c": 0.10441,
    "h": 96.7
  },
  "luminance": 0.69208
}

Semantic roles & 50–950 ramp

primary
#ECD987
secondary
#5167C6
accent
#36D511
background
#FFFEFD
surface
#FEFCF7
border
#D6D5D0
text
#171510
muted
#858481

Preview Lab

Preview with #ECD987

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

Preview Lab → · Contrast checker → · Palette generator →

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