#E2C945#E2C945

#E2C945 is a very light, vivid yellow. Relative luminance 0.584; OKLCH L 83.4% C 0.149 H 98.3°. Best body text is #000000 at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#E2C945
RGBrgb(226, 201, 69)
HSLhsl(50, 73%, 58%)
HSVhsv(50, 69%, 89%)
CMYKcmyk(0%, 11.1%, 69.5%, 11.4%)
CIE-LABlab(80.95, -5.48, 65.99)
CIE-LCHlch(80.95, 66.22, 94.75°)
OKLaboklab(83.39% -0.0214 0.1472)
OKLCHoklch(83.39% 0.149 98.3)
XYZxyz(53.3274, 58.3743, 14.0875)
Luminance0.5837 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C945 #455EE2
analogous
#E27B45 #E2C945 #ACE245
triadic
#E2C945 #45E2C9 #C945E2
tetradic
#E2C945 #45E27B #455EE2 #E245AC
square
#E2C945 #45E27B #455EE2 #E245AC
split-complementary
#E2C945 #45ACE2 #7B45E2
monochromatic
#958117 #CAAF20 #E2C945 #EAD87A #F3E8AF

Accessibility & contrast

On white

1.66
#E2C945 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.67
#E2C945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2C945
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2C945#FFFFFF#000000##000000
##E2C9451.001.6612.6712.67
#FFFFFF1.661.0021.0021.00
#00000012.6721.001.001.00
##00000012.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC432
Deuteranopia (green-blind)
#E3CD4D
Tritanopia (blue-blind)
#F3BAAE
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #e2c945;
/* rgb */ color: rgb(226, 201, 69);
/* oklch */ color: oklch(83.4% 0.149 98.3);
Tailwind
colors: {
  custom: {
    50: '#efd980',
    500: '#e2c945',
    950: '#000000',
  },
}
SCSS
$custom: #e2c945;
$custom-light: #efd980;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c945",
  "rgb": {
    "r": 226,
    "g": 201,
    "b": 69
  },
  "hsl": {
    "h": 50.446,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.83391,
    "c": 0.14877,
    "h": 98.3
  },
  "luminance": 0.58372
}

Semantic roles & 50–950 ramp

primary
#E2C945
secondary
#32429A
accent
#55F038
background
#FFFEFB
surface
#FFFBF2
border
#D7D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #E2C945

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

Preview Lab → · Contrast checker → · Palette generator →

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