#E2C74F#E2C74F

#E2C74F is a very light, vivid yellow. Relative luminance 0.576; OKLCH L 83.1% C 0.140 H 96.5°. Best body text is #000000 at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#E2C74F
RGBrgb(226, 199, 79)
HSLhsl(49, 72%, 60%)
HSVhsv(49, 65%, 89%)
CMYKcmyk(0%, 11.9%, 65%, 11.4%)
CIE-LABlab(80.51, -3.91, 61.50)
CIE-LCHlch(80.51, 61.62, 93.64°)
OKLaboklab(83.07% -0.0158 0.1394)
OKLCHoklch(83.07% 0.14 96.5)
XYZxyz(53.2012, 57.5827, 15.7079)
Luminance0.5758 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2C74F #4F6AE2
analogous
#E27E4F #E2C74F #B3E24F
triadic
#E2C74F #4FE2C7 #C74FE2
tetradic
#E2C74F #4FE27E #4F6AE2 #E24FB3
square
#E2C74F #4FE27E #4F6AE2 #E24FB3
split-complementary
#E2C74F #4FB3E2 #7E4FE2
monochromatic
#9D851A #D1B122 #E2C74F #EBD884 #F3E8B8

Accessibility & contrast

On white

1.68
#E2C74F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.52
#E2C74F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2C74F
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2C74F#FFFFFF#000000##000000
##E2C74F1.001.6812.5212.52
#FFFFFF1.681.0021.0021.00
#00000012.5221.001.001.00
##00000012.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC340
Deuteranopia (green-blind)
#E1CC55
Tritanopia (blue-blind)
#F3B9AE
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #e2c74f;
/* rgb */ color: rgb(226, 199, 79);
/* oklch */ color: oklch(83.1% 0.140 96.5);
Tailwind
colors: {
  custom: {
    50: '#efd786',
    500: '#e2c74f',
    950: '#000000',
  },
}
SCSS
$custom: #e2c74f;
$custom-light: #efd786;
$custom-dark: #000000;
JSON
{
  "hex": "#e2c74f",
  "rgb": {
    "r": 226,
    "g": 199,
    "b": 79
  },
  "hsl": {
    "h": 48.98,
    "s": 71.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.83066,
    "c": 0.14025,
    "h": 96.5
  },
  "luminance": 0.5758
}

Semantic roles & 50–950 ramp

primary
#E2C74F
secondary
#3549A0
accent
#5BEE39
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #E2C74F

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

Preview Lab → · Contrast checker → · Palette generator →

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