#E7E162#E7E162

#E7E162 is a very light, vivid yellow. Relative luminance 0.717; OKLCH L 89.0% C 0.148 H 106.5°. Best body text is #000000 at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#E7E162
RGBrgb(231, 225, 98)
HSLhsl(57, 73%, 65%)
HSVhsv(57, 58%, 91%)
CMYKcmyk(0%, 2.6%, 57.6%, 9.4%)
CIE-LABlab(87.84, -13.73, 61.44)
CIE-LCHlch(87.84, 62.96, 102.60°)
OKLaboklab(89.04% -0.042 0.1417)
OKLCHoklch(89.04% 0.148 106.5)
XYZxyz(62.0868, 71.7231, 22.1263)
Luminance0.7172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7E162 #6268E7
analogous
#E79E62 #E7E162 #ABE762
triadic
#E7E162 #62E7E1 #E162E7
tetradic
#E7E162 #62E79E #6268E7 #E762AB
square
#E7E162 #62E79E #6268E7 #E762AB
split-complementary
#E7E162 #62ABE7 #9E62E7
monochromatic
#B3AC1B #DFD72D #E7E162 #EFEB97 #F7F5CC

Accessibility & contrast

On white

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

On black

15.34
#E7E162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7E162
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7E162#FFFFFF#000000##000000
##E7E1621.001.3715.3415.34
#FFFFFF1.371.0021.0021.00
#00000015.3421.001.001.00
##00000015.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D954
Deuteranopia (green-blind)
#F5DF69
Tritanopia (blue-blind)
#F6D4C5
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #e7e162;
/* rgb */ color: rgb(231, 225, 98);
/* oklch */ color: oklch(89.0% 0.148 106.5);
Tailwind
colors: {
  custom: {
    50: '#f1ea93',
    500: '#e7e162',
    950: '#000000',
  },
}
SCSS
$custom: #e7e162;
$custom-light: #f1ea93;
$custom-dark: #000000;
JSON
{
  "hex": "#e7e162",
  "rgb": {
    "r": 231,
    "g": 225,
    "b": 98
  },
  "hsl": {
    "h": 57.293,
    "s": 73.481,
    "l": 64.51
  },
  "oklch": {
    "l": 0.89039,
    "c": 0.14781,
    "h": 106.5
  },
  "luminance": 0.71721
}

Semantic roles & 50–950 ramp

primary
#E7E162
secondary
#3A3FB4
accent
#19D610
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17160D
muted
#85847F

Preview Lab

Preview with #E7E162

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

Preview Lab → · Contrast checker → · Palette generator →

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