#E2BB28#E2BB28

#E2BB28 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.4% C 0.155 H 92.6°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#E2BB28
RGBrgb(226, 187, 40)
HSLhsl(47, 76%, 52%)
HSVhsv(47, 82%, 89%)
CMYKcmyk(0%, 17.3%, 82.3%, 11.4%)
CIE-LABlab(77.20, 0.61, 72.27)
CIE-LCHlch(77.20, 72.27, 89.52°)
OKLaboklab(80.38% -0.0069 0.155)
OKLCHoklch(80.38% 0.155 92.6)
XYZxyz(49.5203, 51.8657, 9.4099)
Luminance0.5186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#E2BB28 #284FE2
analogous
#E25E28 #E2BB28 #ACE228
triadic
#E2BB28 #28E2BB #BB28E2
tetradic
#E2BB28 #28E25E #284FE2 #E228AC
square
#E2BB28 #28E25E #284FE2 #E228AC
split-complementary
#E2BB28 #28ACE2 #5E28E2
monochromatic
#7F6811 #B49418 #E2BB28 #E9CC5E #F1DD94

Accessibility & contrast

On white

1.85
#E2BB28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.37
#E2BB28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #E2BB28
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##E2BB28#FFFFFF#000000##000000
##E2BB281.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B800
Deuteranopia (green-blind)
#DAC333
Tritanopia (blue-blind)
#F5ABA0
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #e2bb28;
/* rgb */ color: rgb(226, 187, 40);
/* oklch */ color: oklch(80.4% 0.155 92.6);
Tailwind
colors: {
  custom: {
    50: '#f0cf71',
    500: '#e2bb28',
    950: '#000000',
  },
}
SCSS
$custom: #e2bb28;
$custom-light: #f0cf71;
$custom-dark: #000000;
JSON
{
  "hex": "#e2bb28",
  "rgb": {
    "r": 226,
    "g": 187,
    "b": 40
  },
  "hsl": {
    "h": 47.419,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.80377,
    "c": 0.15519,
    "h": 92.6
  },
  "luminance": 0.51863
}

Semantic roles & 50–950 ramp

primary
#E2BB28
secondary
#293C86
accent
#5DF335
background
#FFFEFB
surface
#FFFAF1
border
#D7D3CB
text
#181308
muted
#86837D

Preview Lab

Preview with #E2BB28

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

Preview Lab → · Contrast checker → · Palette generator →

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