#E4C252#E4C252

#E4C252 is a very light, vivid yellow. Relative luminance 0.557; OKLCH L 82.3% C 0.135 H 92.2°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#E4C252
RGBrgb(228, 194, 82)
HSLhsl(46, 73%, 61%)
HSVhsv(46, 64%, 89%)
CMYKcmyk(0%, 14.9%, 64%, 10.6%)
CIE-LABlab(79.44, -0.31, 59.12)
CIE-LCHlch(79.44, 59.12, 90.30°)
OKLaboklab(82.27% -0.0052 0.1347)
OKLCHoklch(82.27% 0.135 92.2)
XYZxyz(52.8122, 55.6896, 15.9484)
Luminance0.5569 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4C252 #5274E4
analogous
#E47952 #E4C252 #BDE452
triadic
#E4C252 #52E4C2 #C252E4
tetradic
#E4C252 #52E479 #5274E4 #E452BD
square
#E4C252 #52E479 #5274E4 #E452BD
split-complementary
#E4C252 #52BDE4 #7952E4
monochromatic
#A28219 #D7AD22 #E4C252 #ECD587 #F5E7BC

Accessibility & contrast

On white

1.73
#E4C252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.14
#E4C252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4C252
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4C252#FFFFFF#000000##000000
##E4C2521.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BF45
Deuteranopia (green-blind)
#DEC957
Tritanopia (blue-blind)
#F6B4AA
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #e4c252;
/* rgb */ color: rgb(228, 194, 82);
/* oklch */ color: oklch(82.3% 0.135 92.2);
Tailwind
colors: {
  custom: {
    50: '#f0d487',
    500: '#e4c252',
    950: '#000000',
  },
}
SCSS
$custom: #e4c252;
$custom-light: #f0d487;
$custom-dark: #000000;
JSON
{
  "hex": "#e4c252",
  "rgb": {
    "r": 228,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 46.027,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.82272,
    "c": 0.1348,
    "h": 92.2
  },
  "luminance": 0.55687
}

Semantic roles & 50–950 ramp

primary
#E4C252
secondary
#354FA5
accent
#3ED510
background
#FFFEFC
surface
#FFFBF3
border
#D7D4CD
text
#17140C
muted
#85837F

Preview Lab

Preview with #E4C252

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

Preview Lab → · Contrast checker → · Palette generator →

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