#E7E251#E7E251

#E7E251 is a very light, vivid yellow. Relative luminance 0.720; OKLCH L 89.1% C 0.162 H 107.4°. Best body text is #000000 at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#E7E251
RGBrgb(231, 226, 81)
HSLhsl(58, 76%, 61%)
HSVhsv(58, 65%, 91%)
CMYKcmyk(0%, 2.2%, 64.9%, 9.4%)
CIE-LABlab(87.96, -15.31, 68.61)
CIE-LCHlch(87.96, 70.29, 102.58°)
OKLaboklab(89.09% -0.0483 0.1545)
OKLCHoklch(89.09% 0.162 107.4)
XYZxyz(61.6387, 71.9777, 18.4292)
Luminance0.7198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7E251 #5156E7
analogous
#E79751 #E7E251 #A1E751
triadic
#E7E251 #51E7E2 #E251E7
tetradic
#E7E251 #51E797 #5156E7 #E751A1
square
#E7E251 #51E797 #5156E7 #E751A1
split-complementary
#E7E251 #51A1E7 #9751E7
monochromatic
#A7A217 #DCD61E #E7E251 #EEEB87 #F6F4BD

Accessibility & contrast

On white

1.36
#E7E251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.40
#E7E251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7E251
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7E251#FFFFFF#000000##000000
##E7E2511.001.3615.4015.40
#FFFFFF1.361.0021.0021.00
#00000015.4021.001.001.00
##00000015.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DA3D
Deuteranopia (green-blind)
#F7DF5A
Tritanopia (blue-blind)
#F7D4C4
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #e7e251;
/* rgb */ color: rgb(231, 226, 81);
/* oklch */ color: oklch(89.1% 0.162 107.4);
Tailwind
colors: {
  custom: {
    50: '#f2ea89',
    500: '#e7e251',
    950: '#000000',
  },
}
SCSS
$custom: #e7e251;
$custom-light: #f2ea89;
$custom-dark: #000000;
JSON
{
  "hex": "#e7e251",
  "rgb": {
    "r": 231,
    "g": 226,
    "b": 81
  },
  "hsl": {
    "h": 58,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.89092,
    "c": 0.16191,
    "h": 107.4
  },
  "luminance": 0.71976
}

Semantic roles & 50–950 ramp

primary
#E7E251
secondary
#3438A8
accent
#14D80E
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#17160C
muted
#85847F

Preview Lab

Preview with #E7E251

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

Preview Lab → · Contrast checker → · Palette generator →

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