#E4C951#E4C951

#E4C951 is a very light, vivid yellow. Relative luminance 0.589; OKLCH L 83.7% C 0.140 H 96.5°. Best body text is #000000 at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#E4C951
RGBrgb(228, 201, 81)
HSLhsl(49, 73%, 61%)
HSVhsv(49, 64%, 89%)
CMYKcmyk(0%, 11.8%, 64.5%, 10.6%)
CIE-LABlab(81.22, -3.98, 61.46)
CIE-LCHlch(81.22, 61.59, 93.71°)
OKLaboklab(83.68% -0.0159 0.1395)
OKLCHoklch(83.68% 0.14 96.5)
XYZxyz(54.3692, 58.8640, 16.2811)
Luminance0.5886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4C951 #516CE4
analogous
#E48051 #E4C951 #B5E451
triadic
#E4C951 #51E4C9 #C951E4
tetradic
#E4C951 #51E480 #516CE4 #E451B5
square
#E4C951 #51E480 #516CE4 #E451B5
split-complementary
#E4C951 #51B5E4 #8051E4
monochromatic
#A28819 #D7B521 #E4C951 #ECD986 #F4EABB

Accessibility & contrast

On white

1.64
#E4C951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.77
#E4C951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4C951
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4C951#FFFFFF#000000##000000
##E4C9511.001.6412.7712.77
#FFFFFF1.641.0021.0021.00
#00000012.7721.001.001.00
##00000012.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC543
Deuteranopia (green-blind)
#E3CE57
Tritanopia (blue-blind)
#F5BBB0
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #e4c951;
/* rgb */ color: rgb(228, 201, 81);
/* oklch */ color: oklch(83.7% 0.140 96.5);
Tailwind
colors: {
  custom: {
    50: '#f0d987',
    500: '#e4c951',
    950: '#000000',
  },
}
SCSS
$custom: #e4c951;
$custom-light: #f0d987;
$custom-dark: #000000;
JSON
{
  "hex": "#e4c951",
  "rgb": {
    "r": 228,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 48.98,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.83676,
    "c": 0.14042,
    "h": 96.5
  },
  "luminance": 0.58861
}

Semantic roles & 50–950 ramp

primary
#E4C951
secondary
#3549A4
accent
#34D510
background
#FFFEFC
surface
#FFFBF3
border
#D7D4CD
text
#17140C
muted
#85837F

Preview Lab

Preview with #E4C951

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

Preview Lab → · Contrast checker → · Palette generator →

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