#EFD987#EFD987

#EFD987 is a very light, moderate yellow. Relative luminance 0.697; OKLCH L 88.6% C 0.105 H 94.9°. Best body text is #000000 at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#EFD987
RGBrgb(239, 217, 135)
HSLhsl(47, 76%, 73%)
HSVhsv(47, 44%, 94%)
CMYKcmyk(0%, 9.2%, 43.5%, 6.3%)
CIE-LABlab(86.86, -3.35, 43.06)
CIE-LCHlch(86.86, 43.19, 94.45°)
OKLaboklab(88.56% -0.0089 0.1045)
OKLCHoklch(88.56% 0.105 94.9)
XYZxyz(64.7843, 69.7281, 32.9633)
Luminance0.6973 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EFD987 #879DEF
analogous
#EFA587 #EFD987 #D1EF87
triadic
#EFD987 #87EFD9 #D987EF
tetradic
#EFD987 #87EFA5 #879DEF #EF87D1
square
#EFD987 #87EFA5 #879DEF #EF87D1
split-complementary
#EFD987 #87D1EF #A587EF
monochromatic
#DEB51E #E8C851 #EFD987 #F6EABD #FBF6E4

Accessibility & contrast

On white

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

On black

14.95
#EFD987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EFD987
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EFD987#FFFFFF#000000##000000
##EFD9871.001.4114.9514.95
#FFFFFF1.411.0021.0021.00
#00000014.9521.001.001.00
##00000014.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D581
Deuteranopia (green-blind)
#EEDD8A
Tritanopia (blue-blind)
#FECEC5
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #efd987;
/* rgb */ color: rgb(239, 217, 135);
/* oklch */ color: oklch(88.6% 0.105 94.9);
Tailwind
colors: {
  custom: {
    50: '#f6e4ab',
    500: '#efd987',
    950: '#000000',
  },
}
SCSS
$custom: #efd987;
$custom-light: #f6e4ab;
$custom-dark: #000000;
JSON
{
  "hex": "#efd987",
  "rgb": {
    "r": 239,
    "g": 217,
    "b": 135
  },
  "hsl": {
    "h": 47.308,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.88564,
    "c": 0.1049,
    "h": 94.9
  },
  "luminance": 0.69726
}

Semantic roles & 50–950 ramp

primary
#EFD987
secondary
#506ACA
accent
#38D90D
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#171510
muted
#858481

Preview Lab

Preview with #EFD987

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

Preview Lab → · Contrast checker → · Palette generator →

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