#E7D862#E7D862

#E7D862 is a very light, vivid yellow. Relative luminance 0.670; OKLCH L 87.2% C 0.139 H 102.1°. Best body text is #000000 at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#E7D862
RGBrgb(231, 216, 98)
HSLhsl(53, 73%, 65%)
HSVhsv(53, 58%, 91%)
CMYKcmyk(0%, 6.5%, 57.6%, 9.4%)
CIE-LABlab(85.50, -9.24, 58.83)
CIE-LCHlch(85.50, 59.55, 98.93°)
OKLaboklab(87.18% -0.0292 0.1361)
OKLCHoklch(87.18% 0.139 102.1)
XYZxyz(59.7176, 66.9847, 21.3366)
Luminance0.6698 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E7D862 #6271E7
analogous
#E79662 #E7D862 #B4E762
triadic
#E7D862 #62E7D8 #D862E7
tetradic
#E7D862 #62E796 #6271E7 #E762B4
square
#E7D862 #62E796 #6271E7 #E762B4
split-complementary
#E7D862 #62B4E7 #9662E7
monochromatic
#B3A21B #DFCB2D #E7D862 #EFE597 #F7F2CC

Accessibility & contrast

On white

1.46
#E7D862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.40
#E7D862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E7D862
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E7D862#FFFFFF#000000##000000
##E7D8621.001.4614.4014.40
#FFFFFF1.461.0021.0021.00
#00000014.4021.001.001.00
##00000014.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD256
Deuteranopia (green-blind)
#EED968
Tritanopia (blue-blind)
#F7CBBE
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #e7d862;
/* rgb */ color: rgb(231, 216, 98);
/* oklch */ color: oklch(87.2% 0.139 102.1);
Tailwind
colors: {
  custom: {
    50: '#f1e392',
    500: '#e7d862',
    950: '#000000',
  },
}
SCSS
$custom: #e7d862;
$custom-light: #f1e392;
$custom-dark: #000000;
JSON
{
  "hex": "#e7d862",
  "rgb": {
    "r": 231,
    "g": 216,
    "b": 98
  },
  "hsl": {
    "h": 53.233,
    "s": 73.481,
    "l": 64.51
  },
  "oklch": {
    "l": 0.87179,
    "c": 0.13922,
    "h": 102.1
  },
  "luminance": 0.66982
}

Semantic roles & 50–950 ramp

primary
#E7D862
secondary
#3A47B4
accent
#26D610
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #E7D862

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

Preview Lab → · Contrast checker → · Palette generator →

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