#E7E172#E7E172

#E7E172 is a very light, vivid yellow. Relative luminance 0.721; OKLCH L 89.2% C 0.133 H 106.0°. Best body text is #000000 at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#E7E172
RGBrgb(231, 225, 114)
HSLhsl(57, 71%, 68%)
HSVhsv(57, 51%, 91%)
CMYKcmyk(0%, 2.6%, 50.6%, 9.4%)
CIE-LABlab(88.00, -12.49, 54.42)
CIE-LCHlch(88.00, 55.83, 102.93°)
OKLaboklab(89.22% -0.0368 0.1283)
OKLCHoklch(89.22% 0.133 106)
XYZxyz(62.9191, 72.0561, 26.5102)
Luminance0.7205 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7E172 #7278E7
analogous
#E7A672 #E7E172 #B3E772
triadic
#E7E172 #72E7E1 #E172E7
tetradic
#E7E172 #72E7A6 #7278E7 #E772B3
square
#E7E172 #72E7A6 #7278E7 #E772B3
split-complementary
#E7E172 #72B3E7 #A672E7
monochromatic
#BEB620 #DED63E #E7E172 #F0ECA6 #F9F7DB

Accessibility & contrast

On white

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

On black

15.41
#E7E172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7E172
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7E172#FFFFFF#000000##000000
##E7E1721.001.3615.4115.41
#FFFFFF1.361.0021.0021.00
#00000015.4121.001.001.00
##00000015.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DA68
Deuteranopia (green-blind)
#F4DF77
Tritanopia (blue-blind)
#F5D5C8
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #e7e172;
/* rgb */ color: rgb(231, 225, 114);
/* oklch */ color: oklch(89.2% 0.133 106.0);
Tailwind
colors: {
  custom: {
    50: '#f1ea9d',
    500: '#e7e172',
    950: '#000000',
  },
}
SCSS
$custom: #e7e172;
$custom-light: #f1ea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#e7e172",
  "rgb": {
    "r": 231,
    "g": 225,
    "b": 114
  },
  "hsl": {
    "h": 56.923,
    "s": 70.909,
    "l": 67.647
  },
  "oklch": {
    "l": 0.89218,
    "c": 0.13347,
    "h": 106
  },
  "luminance": 0.72054
}

Semantic roles & 50–950 ramp

primary
#E7E172
secondary
#4046BD
accent
#1CD313
background
#FFFEFC
surface
#FEFCF5
border
#D6D5CF
text
#17160E
muted
#85847F

Preview Lab

Preview with #E7E172

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

Preview Lab → · Contrast checker → · Palette generator →

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