#E7D157#E7D157

#E7D157 is a very light, vivid yellow. Relative luminance 0.633; OKLCH L 85.6% C 0.142 H 99.1°. Best body text is #000000 at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#E7D157
RGBrgb(231, 209, 87)
HSLhsl(51, 75%, 62%)
HSVhsv(51, 62%, 91%)
CMYKcmyk(0%, 9.5%, 62.3%, 9.4%)
CIE-LABlab(83.59, -6.44, 61.53)
CIE-LCHlch(83.59, 61.87, 95.98°)
OKLaboklab(85.64% -0.0225 0.1405)
OKLCHoklch(85.64% 0.142 99.1)
XYZxyz(57.4781, 63.2805, 18.2017)
Luminance0.6328 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D157 #576DE7
analogous
#E78957 #E7D157 #B5E757
triadic
#E7D157 #57E7D1 #D157E7
tetradic
#E7D157 #57E789 #576DE7 #E757B5
square
#E7D157 #57E789 #576DE7 #E757B5
split-complementary
#E7D157 #57B5E7 #8957E7
monochromatic
#AB9518 #DFC221 #E7D157 #EFE08D #F6EEC2

Accessibility & contrast

On white

1.54
#E7D157 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.66
#E7D157 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D157
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D157#FFFFFF#000000##000000
##E7D1571.001.5413.6613.66
#FFFFFF1.541.0021.0021.00
#00000013.6621.001.001.00
##00000013.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CC49
Deuteranopia (green-blind)
#EAD45D
Tritanopia (blue-blind)
#F8C3B7
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #e7d157;
/* rgb */ color: rgb(231, 209, 87);
/* oklch */ color: oklch(85.6% 0.142 99.1);
Tailwind
colors: {
  custom: {
    50: '#f2de8b',
    500: '#e7d157',
    950: '#000000',
  },
}
SCSS
$custom: #e7d157;
$custom-light: #f2de8b;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d157",
  "rgb": {
    "r": 231,
    "g": 209,
    "b": 87
  },
  "hsl": {
    "h": 50.833,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.85635,
    "c": 0.14224,
    "h": 99.1
  },
  "luminance": 0.63278
}

Semantic roles & 50–950 ramp

primary
#E7D157
secondary
#3648AC
accent
#2DD70E
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150C
muted
#85847F

Preview Lab

Preview with #E7D157

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

Preview Lab → · Contrast checker → · Palette generator →

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