#E7D956#E7D956

#E7D956 is a very light, vivid yellow. Relative luminance 0.673; OKLCH L 87.3% C 0.150 H 103.2°. Best body text is #000000 at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#E7D956
RGBrgb(231, 217, 86)
HSLhsl(54, 75%, 62%)
HSVhsv(54, 63%, 91%)
CMYKcmyk(0%, 6.1%, 62.8%, 9.4%)
CIE-LABlab(85.65, -10.54, 64.17)
CIE-LCHlch(85.65, 65.03, 99.33°)
OKLaboklab(87.27% -0.0343 0.1459)
OKLCHoklch(87.27% 0.15 103.2)
XYZxyz(59.4498, 67.2888, 18.6588)
Luminance0.6729 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D956 #5664E7
analogous
#E79156 #E7D956 #ADE756
triadic
#E7D956 #56E7D9 #D956E7
tetradic
#E7D956 #56E791 #5664E7 #E756AD
square
#E7D956 #56E791 #5664E7 #E756AD
split-complementary
#E7D956 #56ADE7 #9156E7
monochromatic
#AA9C18 #DFCD20 #E7D956 #EFE58C #F6F1C1

Accessibility & contrast

On white

1.45
#E7D956 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.46
#E7D956 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D956
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D956#FFFFFF#000000##000000
##E7D9561.001.4514.4614.46
#FFFFFF1.451.0021.0021.00
#00000014.4621.001.001.00
##00000014.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD246
Deuteranopia (green-blind)
#F0D95D
Tritanopia (blue-blind)
#F7CBBD
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #e7d956;
/* rgb */ color: rgb(231, 217, 86);
/* oklch */ color: oklch(87.3% 0.150 103.2);
Tailwind
colors: {
  custom: {
    50: '#f2e48b',
    500: '#e7d956',
    950: '#000000',
  },
}
SCSS
$custom: #e7d956;
$custom-light: #f2e48b;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d956",
  "rgb": {
    "r": 231,
    "g": 217,
    "b": 86
  },
  "hsl": {
    "h": 54.207,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.87267,
    "c": 0.14988,
    "h": 103.2
  },
  "luminance": 0.67287
}

Semantic roles & 50–950 ramp

primary
#E7D956
secondary
#3541AC
accent
#22D70E
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150C
muted
#85847F

Preview Lab

Preview with #E7D956

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

Preview Lab → · Contrast checker → · Palette generator →

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