#E7E158#E7E158

#E7E158 is a very light, vivid yellow. Relative luminance 0.715; OKLCH L 88.9% C 0.156 H 106.8°. Best body text is #000000 at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#E7E158
RGBrgb(231, 225, 88)
HSLhsl(57, 75%, 63%)
HSVhsv(57, 62%, 91%)
CMYKcmyk(0%, 2.6%, 61.9%, 9.4%)
CIE-LABlab(87.75, -14.40, 65.58)
CIE-LCHlch(87.75, 67.14, 102.38°)
OKLaboklab(88.94% -0.045 0.1492)
OKLCHoklch(88.94% 0.156 106.8)
XYZxyz(61.6438, 71.5459, 19.7932)
Luminance0.7154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7E158 #585EE7
analogous
#E79A58 #E7E158 #A5E758
triadic
#E7E158 #58E7E1 #E158E7
tetradic
#E7E158 #58E79A #585EE7 #E758A5
square
#E7E158 #58E79A #585EE7 #E758A5
split-complementary
#E7E158 #58A5E7 #9A58E7
monochromatic
#ACA619 #DFD722 #E7E158 #EFEB8E #F6F4C3

Accessibility & contrast

On white

1.37
#E7E158 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.31
#E7E158 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7E158
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7E158#FFFFFF#000000##000000
##E7E1581.001.3715.3115.31
#FFFFFF1.371.0021.0021.00
#00000015.3121.001.001.00
##00000015.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3D947
Deuteranopia (green-blind)
#F6DF60
Tritanopia (blue-blind)
#F7D3C4
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #e7e158;
/* rgb */ color: rgb(231, 225, 88);
/* oklch */ color: oklch(88.9% 0.156 106.8);
Tailwind
colors: {
  custom: {
    50: '#f2ea8d',
    500: '#e7e158',
    950: '#000000',
  },
}
SCSS
$custom: #e7e158;
$custom-light: #f2ea8d;
$custom-dark: #000000;
JSON
{
  "hex": "#e7e158",
  "rgb": {
    "r": 231,
    "g": 225,
    "b": 88
  },
  "hsl": {
    "h": 57.483,
    "s": 74.869,
    "l": 62.549
  },
  "oklch": {
    "l": 0.88943,
    "c": 0.15582,
    "h": 106.8
  },
  "luminance": 0.71544
}

Semantic roles & 50–950 ramp

primary
#E7E158
secondary
#363BAD
accent
#17D70E
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17160D
muted
#85847F

Preview Lab

Preview with #E7E158

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

Preview Lab → · Contrast checker → · Palette generator →

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