#E7D158#E7D158

#E7D158 is a very light, vivid yellow. Relative luminance 0.633; OKLCH L 85.6% C 0.141 H 99.0°. Best body text is #000000 at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#E7D158
RGBrgb(231, 209, 88)
HSLhsl(51, 75%, 63%)
HSVhsv(51, 62%, 91%)
CMYKcmyk(0%, 9.5%, 61.9%, 9.4%)
CIE-LABlab(83.60, -6.38, 61.11)
CIE-LCHlch(83.60, 61.44, 95.96°)
OKLaboklab(85.64% -0.0222 0.1397)
OKLCHoklch(85.64% 0.141 99)
XYZxyz(57.5193, 63.2970, 18.4184)
Luminance0.6329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D158 #586EE7
analogous
#E78958 #E7D158 #B6E758
triadic
#E7D158 #58E7D1 #D158E7
tetradic
#E7D158 #58E789 #586EE7 #E758B6
square
#E7D158 #58E789 #586EE7 #E758B6
split-complementary
#E7D158 #58B6E7 #8958E7
monochromatic
#AC9519 #DFC222 #E7D158 #EFE08E #F6EEC3

Accessibility & contrast

On white

1.54
#E7D158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.66
#E7D158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D158
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D158#FFFFFF#000000##000000
##E7D1581.001.5413.6613.66
#FFFFFF1.541.0021.0021.00
#00000013.6621.001.001.00
##00000013.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CC4A
Deuteranopia (green-blind)
#EAD45E
Tritanopia (blue-blind)
#F8C3B7
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #e7d158;
/* rgb */ color: rgb(231, 209, 88);
/* oklch */ color: oklch(85.6% 0.141 99.0);
Tailwind
colors: {
  custom: {
    50: '#f2de8c',
    500: '#e7d158',
    950: '#000000',
  },
}
SCSS
$custom: #e7d158;
$custom-light: #f2de8c;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d158",
  "rgb": {
    "r": 231,
    "g": 209,
    "b": 88
  },
  "hsl": {
    "h": 50.769,
    "s": 74.869,
    "l": 62.549
  },
  "oklch": {
    "l": 0.85644,
    "c": 0.14146,
    "h": 99
  },
  "luminance": 0.63294
}

Semantic roles & 50–950 ramp

primary
#E7D158
secondary
#3648AD
accent
#2DD70E
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150C
muted
#85847F

Preview Lab

Preview with #E7D158

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

Preview Lab → · Contrast checker → · Palette generator →

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