#EBD987#EBD987

#EBD987 is a very light, moderate yellow. Relative luminance 0.690; OKLCH L 88.2% C 0.104 H 97.3°. Best body text is #000000 at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#EBD987
RGBrgb(235, 217, 135)
HSLhsl(49, 71%, 73%)
HSVhsv(49, 43%, 92%)
CMYKcmyk(0%, 7.7%, 42.6%, 7.8%)
CIE-LABlab(86.52, -4.93, 42.56)
CIE-LCHlch(86.52, 42.84, 96.61°)
OKLaboklab(88.21% -0.0133 0.1034)
OKLCHoklch(88.21% 0.104 97.3)
XYZxyz(63.4485, 69.0393, 32.9007)
Luminance0.6904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EBD987 #8799EB
analogous
#EBA787 #EBD987 #CBEB87
triadic
#EBD987 #87EBD9 #D987EB
tetradic
#EBD987 #87EBA7 #8799EB #EB87CB
square
#EBD987 #87EBA7 #8799EB #EB87CB
split-complementary
#EBD987 #87CBEB #A787EB
monochromatic
#D4B423 #E2C853 #EBD987 #F4EABB #FBF7E5

Accessibility & contrast

On white

1.42
#EBD987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.81
#EBD987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EBD987
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EBD987#FFFFFF#000000##000000
##EBD9871.001.4214.8114.81
#FFFFFF1.421.0021.0021.00
#00000014.8121.001.001.00
##00000014.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ebd987;
/* rgb */ color: rgb(235, 217, 135);
/* oklch */ color: oklch(88.2% 0.104 97.3);
Tailwind
colors: {
  custom: {
    50: '#f3e4ab',
    500: '#ebd987',
    950: '#000000',
  },
}
SCSS
$custom: #ebd987;
$custom-light: #f3e4ab;
$custom-dark: #000000;
JSON
{
  "hex": "#ebd987",
  "rgb": {
    "r": 235,
    "g": 217,
    "b": 135
  },
  "hsl": {
    "h": 49.2,
    "s": 71.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.88214,
    "c": 0.10427,
    "h": 97.3
  },
  "luminance": 0.69037
}

Semantic roles & 50–950 ramp

primary
#EBD987
secondary
#5166C5
accent
#35D312
background
#FFFEFD
surface
#FEFCF7
border
#D6D5D0
text
#171510
muted
#858481

Preview Lab

Preview with #EBD987

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

Preview Lab → · Contrast checker → · Palette generator →

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