#E7E151#E7E151

#E7E151 is a very light, vivid yellow. Relative luminance 0.714; OKLCH L 88.9% C 0.161 H 106.9°. Best body text is #000000 at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#E7E151
RGBrgb(231, 225, 81)
HSLhsl(58, 76%, 61%)
HSVhsv(58, 65%, 91%)
CMYKcmyk(0%, 2.6%, 64.9%, 9.4%)
CIE-LABlab(87.70, -14.81, 68.34)
CIE-LCHlch(87.70, 69.92, 102.23°)
OKLaboklab(88.88% -0.0469 0.154)
OKLCHoklch(88.88% 0.161 106.9)
XYZxyz(61.3676, 71.4355, 18.3388)
Luminance0.7143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7E151 #5157E7
analogous
#E79651 #E7E151 #A2E751
triadic
#E7E151 #51E7E1 #E151E7
tetradic
#E7E151 #51E796 #5157E7 #E751A2
square
#E7E151 #51E796 #5157E7 #E751A2
split-complementary
#E7E151 #51A2E7 #9651E7
monochromatic
#A7A117 #DCD51E #E7E151 #EEEA87 #F6F4BD

Accessibility & contrast

On white

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

On black

15.29
#E7E151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7E151
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7E151#FFFFFF#000000##000000
##E7E1511.001.3715.2915.29
#FFFFFF1.371.0021.0021.00
#00000015.2921.001.001.00
##00000015.2921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e7e151;
/* rgb */ color: rgb(231, 225, 81);
/* oklch */ color: oklch(88.9% 0.161 106.9);
Tailwind
colors: {
  custom: {
    50: '#f2ea89',
    500: '#e7e151',
    950: '#000000',
  },
}
SCSS
$custom: #e7e151;
$custom-light: #f2ea89;
$custom-dark: #000000;
JSON
{
  "hex": "#e7e151",
  "rgb": {
    "r": 231,
    "g": 225,
    "b": 81
  },
  "hsl": {
    "h": 57.6,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.88883,
    "c": 0.16095,
    "h": 106.9
  },
  "luminance": 0.71433
}

Semantic roles & 50–950 ramp

primary
#E7E151
secondary
#3438A8
accent
#16D80E
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17160C
muted
#85847F

Preview Lab

Preview with #E7E151

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

Preview Lab → · Contrast checker → · Palette generator →

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