#E4C04C#E4C04C

#E4C04C is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.8% C 0.138 H 91.7°. Best body text is #000000 at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#E4C04C
RGBrgb(228, 192, 76)
HSLhsl(46, 74%, 60%)
HSVhsv(46, 67%, 89%)
CMYKcmyk(0%, 15.8%, 66.7%, 10.6%)
CIE-LABlab(78.88, 0.38, 61.10)
CIE-LCHlch(78.88, 61.10, 89.65°)
OKLaboklab(81.82% -0.004 0.138)
OKLCHoklch(81.82% 0.138 91.7)
XYZxyz(52.1517, 54.7180, 14.6508)
Luminance0.5472 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4C04C #4C70E4
analogous
#E4744C #E4C04C #BCE44C
triadic
#E4C04C #4CE4C0 #C04CE4
tetradic
#E4C04C #4CE474 #4C70E4 #E44CBC
square
#E4C04C #4CE474 #4C70E4 #E44CBC
split-complementary
#E4C04C #4CBCE4 #744CE4
monochromatic
#9E7E18 #D3A920 #E4C04C #ECD381 #F4E5B6

Accessibility & contrast

On white

1.76
#E4C04C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.94
#E4C04C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4C04C
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4C04C#FFFFFF#000000##000000
##E4C04C1.001.7611.9411.94
#FFFFFF1.761.0021.0021.00
#00000011.9421.001.001.00
##00000011.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD3E
Deuteranopia (green-blind)
#DDC852
Tritanopia (blue-blind)
#F6B1A8
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #e4c04c;
/* rgb */ color: rgb(228, 192, 76);
/* oklch */ color: oklch(81.8% 0.138 91.7);
Tailwind
colors: {
  custom: {
    50: '#f0d283',
    500: '#e4c04c',
    950: '#000000',
  },
}
SCSS
$custom: #e4c04c;
$custom-light: #f0d283;
$custom-dark: #000000;
JSON
{
  "hex": "#e4c04c",
  "rgb": {
    "r": 228,
    "g": 192,
    "b": 76
  },
  "hsl": {
    "h": 45.789,
    "s": 73.786,
    "l": 59.608
  },
  "oklch": {
    "l": 0.81815,
    "c": 0.13803,
    "h": 91.7
  },
  "luminance": 0.54715
}

Semantic roles & 50–950 ramp

primary
#E4C04C
secondary
#334DA1
accent
#63F037
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #E4C04C

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

Preview Lab → · Contrast checker → · Palette generator →

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