#E4C04E#E4C04E

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

Color values

HEX#E4C04E
RGBrgb(228, 192, 78)
HSLhsl(46, 74%, 60%)
HSVhsv(46, 66%, 89%)
CMYKcmyk(0%, 15.8%, 65.8%, 10.6%)
CIE-LABlab(78.89, 0.49, 60.27)
CIE-LCHlch(78.89, 60.27, 89.53°)
OKLaboklab(81.83% -0.0034 0.1365)
OKLCHoklch(81.83% 0.137 91.4)
XYZxyz(52.2223, 54.7463, 15.0227)
Luminance0.5474 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4C04E #4E72E4
analogous
#E4754E #E4C04E #BDE44E
triadic
#E4C04E #4EE4C0 #C04EE4
tetradic
#E4C04E #4EE475 #4E72E4 #E44EBD
square
#E4C04E #4EE475 #4E72E4 #E44EBD
split-complementary
#E4C04E #4EBDE4 #754EE4
monochromatic
#9F7F18 #D4A920 #E4C04E #ECD383 #F4E6B8

Accessibility & contrast

On white

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

On black

11.95
#E4C04E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4C04E
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4C04E#FFFFFF#000000##000000
##E4C04E1.001.7611.9511.95
#FFFFFF1.761.0021.0021.00
#00000011.9521.001.001.00
##00000011.9521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #e4c04e;
/* rgb */ color: rgb(228, 192, 78);
/* oklch */ color: oklch(81.8% 0.137 91.4);
Tailwind
colors: {
  custom: {
    50: '#f0d285',
    500: '#e4c04e',
    950: '#000000',
  },
}
SCSS
$custom: #e4c04e;
$custom-light: #f0d285;
$custom-dark: #000000;
JSON
{
  "hex": "#e4c04e",
  "rgb": {
    "r": 228,
    "g": 192,
    "b": 78
  },
  "hsl": {
    "h": 45.6,
    "s": 73.529,
    "l": 60
  },
  "oklch": {
    "l": 0.81833,
    "c": 0.13656,
    "h": 91.4
  },
  "luminance": 0.54743
}

Semantic roles & 50–950 ramp

primary
#E4C04E
secondary
#344EA2
accent
#64F038
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #E4C04E

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

Preview Lab → · Contrast checker → · Palette generator →

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