#E2DC2C#E2DC2C

#E2DC2C is a very light, vivid yellow. Relative luminance 0.675; OKLCH L 87.2% C 0.178 H 107.5°. Best body text is #000000 at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#E2DC2C
RGBrgb(226, 220, 44)
HSLhsl(58, 76%, 53%)
HSVhsv(58, 81%, 89%)
CMYKcmyk(0%, 2.7%, 80.5%, 11.4%)
CIE-LABlab(85.78, -16.02, 78.55)
CIE-LCHlch(85.78, 80.16, 101.53°)
OKLaboklab(87.19% -0.0533 0.1695)
OKLCHoklch(87.19% 0.178 107.5)
XYZxyz(57.4143, 67.5391, 12.3944)
Luminance0.6754 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2DC2C #2C32E2
analogous
#E2812C #E2DC2C #8DE22C
triadic
#E2DC2C #2CE2DC #DC2CE2
tetradic
#E2DC2C #2CE281 #2C32E2 #E22C8D
square
#E2DC2C #2CE281 #2C32E2 #E22C8D
split-complementary
#E2DC2C #2C8DE2 #812CE2
monochromatic
#827E12 #B8B219 #E2DC2C #E9E562 #F1EE98

Accessibility & contrast

On white

1.45
#E2DC2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.51
#E2DC2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2DC2C
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2DC2C#FFFFFF#000000##000000
##E2DC2C1.001.4514.5114.51
#FFFFFF1.451.0021.0021.00
#00000014.5121.001.001.00
##00000014.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD300
Deuteranopia (green-blind)
#F2D93D
Tritanopia (blue-blind)
#F3CDBD
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #e2dc2c;
/* rgb */ color: rgb(226, 220, 44);
/* oklch */ color: oklch(87.2% 0.178 107.5);
Tailwind
colors: {
  custom: {
    50: '#f0e676',
    500: '#e2dc2c',
    950: '#000000',
  },
}
SCSS
$custom: #e2dc2c;
$custom-light: #f0e676;
$custom-dark: #000000;
JSON
{
  "hex": "#e2dc2c",
  "rgb": {
    "r": 226,
    "g": 220,
    "b": 44
  },
  "hsl": {
    "h": 58.022,
    "s": 75.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.87189,
    "c": 0.17765,
    "h": 107.5
  },
  "luminance": 0.67537
}

Semantic roles & 50–950 ramp

primary
#E2DC2C
secondary
#2A2D88
accent
#3CF235
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #E2DC2C

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

Preview Lab → · Contrast checker → · Palette generator →

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