#E4CD5F#E4CD5F

#E4CD5F is a very light, vivid yellow. Relative luminance 0.610; OKLCH L 84.6% C 0.132 H 97.6°. Best body text is #000000 at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#E4CD5F
RGBrgb(228, 205, 95)
HSLhsl(50, 71%, 63%)
HSVhsv(50, 58%, 89%)
CMYKcmyk(0%, 10.1%, 58.3%, 10.6%)
CIE-LABlab(82.37, -5.11, 56.58)
CIE-LCHlch(82.37, 56.81, 95.16°)
OKLaboklab(84.63% -0.0175 0.131)
OKLCHoklch(84.63% 0.132 97.6)
XYZxyz(55.8940, 60.9853, 19.6514)
Luminance0.6098 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E4CD5F #5F76E4
analogous
#E48A5F #E4CD5F #B8E45F
triadic
#E4CD5F #5FE4CD #CD5FE4
tetradic
#E4CD5F #5FE48A #5F76E4 #E45FB8
square
#E4CD5F #5FE48A #5F76E4 #E45FB8
split-complementary
#E4CD5F #5FB8E4 #8A5FE4
monochromatic
#AC931D #DBBD2B #E4CD5F #EDDD93 #F6EEC8

Accessibility & contrast

On white

1.59
#E4CD5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.20
#E4CD5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E4CD5F
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E4CD5F#FFFFFF#000000##000000
##E4CD5F1.001.5913.2013.20
#FFFFFF1.591.0021.0021.00
#00000013.2021.001.001.00
##00000013.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC854
Deuteranopia (green-blind)
#E5D064
Tritanopia (blue-blind)
#F4C0B5
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #e4cd5f;
/* rgb */ color: rgb(228, 205, 95);
/* oklch */ color: oklch(84.6% 0.132 97.6);
Tailwind
colors: {
  custom: {
    50: '#efdc90',
    500: '#e4cd5f',
    950: '#000000',
  },
}
SCSS
$custom: #e4cd5f;
$custom-light: #efdc90;
$custom-dark: #000000;
JSON
{
  "hex": "#e4cd5f",
  "rgb": {
    "r": 228,
    "g": 205,
    "b": 95
  },
  "hsl": {
    "h": 49.624,
    "s": 71.123,
    "l": 63.333
  },
  "oklch": {
    "l": 0.8463,
    "c": 0.13218,
    "h": 97.6
  },
  "luminance": 0.60983
}

Semantic roles & 50–950 ramp

primary
#E4CD5F
secondary
#3A4EAD
accent
#34D312
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#17150D
muted
#85847F

Preview Lab

Preview with #E4CD5F

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

Preview Lab → · Contrast checker → · Palette generator →

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