#EBD871#EBD871

#EBD871 is a very light, vivid yellow. Relative luminance 0.680; OKLCH L 87.7% C 0.126 H 99.1°. Best body text is #000000 at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#EBD871
RGBrgb(235, 216, 113)
HSLhsl(51, 75%, 68%)
HSVhsv(51, 52%, 92%)
CMYKcmyk(0%, 8.1%, 51.9%, 7.8%)
CIE-LABlab(85.99, -6.45, 52.59)
CIE-LCHlch(85.99, 52.99, 96.99°)
OKLaboklab(87.7% -0.0198 0.1242)
OKLCHoklch(87.7% 0.126 99.1)
XYZxyz(61.7995, 67.9685, 25.4835)
Luminance0.6797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EBD871 #7184EB
analogous
#EB9B71 #EBD871 #C1EB71
triadic
#EBD871 #71EBD8 #D871EB
tetradic
#EBD871 #71EB9B #7184EB #EB71C1
square
#EBD871 #71EB9B #7184EB #EB71C1
split-complementary
#EBD871 #71C1EB #9B71EB
monochromatic
#C6AB1C #E3C93B #EBD871 #F3E7A7 #FAF5DC

Accessibility & contrast

On white

1.44
#EBD871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.59
#EBD871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EBD871
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EBD871#FFFFFF#000000##000000
##EBD8711.001.4414.5914.59
#FFFFFF1.441.0021.0021.00
#00000014.5921.001.001.00
##00000014.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D368
Deuteranopia (green-blind)
#EEDA76
Tritanopia (blue-blind)
#FBCBC0
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #ebd871;
/* rgb */ color: rgb(235, 216, 113);
/* oklch */ color: oklch(87.7% 0.126 99.1);
Tailwind
colors: {
  custom: {
    50: '#f4e39c',
    500: '#ebd871',
    950: '#000000',
  },
}
SCSS
$custom: #ebd871;
$custom-light: #f4e39c;
$custom-dark: #000000;
JSON
{
  "hex": "#ebd871",
  "rgb": {
    "r": 235,
    "g": 216,
    "b": 113
  },
  "hsl": {
    "h": 50.656,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.87703,
    "c": 0.12573,
    "h": 99.1
  },
  "luminance": 0.67966
}

Semantic roles & 50–950 ramp

primary
#EBD871
secondary
#3D52C3
accent
#2DD70E
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #EBD871

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

Preview Lab → · Contrast checker → · Palette generator →

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