#E7D151#E7D151

#E7D151 is a very light, vivid yellow. Relative luminance 0.632; OKLCH L 85.6% C 0.147 H 99.5°. Best body text is #000000 at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#E7D151
RGBrgb(231, 209, 81)
HSLhsl(51, 76%, 61%)
HSVhsv(51, 65%, 91%)
CMYKcmyk(0%, 9.5%, 64.9%, 9.4%)
CIE-LABlab(83.54, -6.81, 64.00)
CIE-LCHlch(83.54, 64.36, 96.07°)
OKLaboklab(85.58% -0.0242 0.1448)
OKLCHoklch(85.58% 0.147 99.5)
XYZxyz(57.2431, 63.1865, 16.9640)
Luminance0.6318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D151 #5167E7
analogous
#E78651 #E7D151 #B2E751
triadic
#E7D151 #51E7D1 #D151E7
tetradic
#E7D151 #51E786 #5167E7 #E751B2
square
#E7D151 #51E786 #5167E7 #E751B2
split-complementary
#E7D151 #51B2E7 #8651E7
monochromatic
#A79217 #DCC11E #E7D151 #EEDF87 #F6EDBD

Accessibility & contrast

On white

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

On black

13.64
#E7D151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D151
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D151#FFFFFF#000000##000000
##E7D1511.001.5413.6413.64
#FFFFFF1.541.0021.0021.00
#00000013.6421.001.001.00
##00000013.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CC41
Deuteranopia (green-blind)
#EAD458
Tritanopia (blue-blind)
#F8C3B6
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #e7d151;
/* rgb */ color: rgb(231, 209, 81);
/* oklch */ color: oklch(85.6% 0.147 99.5);
Tailwind
colors: {
  custom: {
    50: '#f2de88',
    500: '#e7d151',
    950: '#000000',
  },
}
SCSS
$custom: #e7d151;
$custom-light: #f2de88;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d151",
  "rgb": {
    "r": 231,
    "g": 209,
    "b": 81
  },
  "hsl": {
    "h": 51.2,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.8558,
    "c": 0.14682,
    "h": 99.5
  },
  "luminance": 0.63184
}

Semantic roles & 50–950 ramp

primary
#E7D151
secondary
#3445A8
accent
#2BD80E
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150C
muted
#85847F

Preview Lab

Preview with #E7D151

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

Preview Lab → · Contrast checker → · Palette generator →

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