#28420B#28420B

#28420B is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.5% C 0.085 H 131.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#28420B
RGBrgb(40, 66, 11)
HSLhsl(88, 71%, 15%)
HSVhsv(88, 83%, 26%)
CMYKcmyk(39.4%, 0%, 83.3%, 74.1%)
CIE-LABlab(24.86, -20.19, 28.45)
CIE-LCHlch(24.86, 34.89, 125.36°)
OKLaboklab(34.55% -0.057 0.0637)
OKLCHoklch(34.55% 0.085 131.9)
XYZxyz(2.8837, 4.3716, 1.0084)
Luminance0.0437 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28420B #250B42
analogous
#42410B #28420B #0C420B
triadic
#28420B #0B2842 #420B28
tetradic
#28420B #0B4241 #250B42 #420B0C
square
#28420B #0B4241 #250B42 #420B0C
split-complementary
#28420B #0B0C42 #410B42
monochromatic
#101A04 #101A04 #28420B #487614 #68AB1C

Accessibility & contrast

On white

11.20
#28420B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#28420B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28420B
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28420B#FFFFFF#000000##FFFFFF
##28420B1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C03
Deuteranopia (green-blind)
#423A10
Tritanopia (blue-blind)
#293F37
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28420b;
/* rgb */ color: rgb(40, 66, 11);
/* oklch */ color: oklch(34.5% 0.085 131.9);
Tailwind
colors: {
  custom: {
    50: '#65764e',
    500: '#28420b',
    950: '#000000',
  },
}
SCSS
$custom: #28420b;
$custom-light: #65764e;
$custom-dark: #000000;
JSON
{
  "hex": "#28420b",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 11
  },
  "hsl": {
    "h": 88.364,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.34548,
    "c": 0.08548,
    "h": 131.9
  },
  "luminance": 0.04372
}

Semantic roles & 50–950 ramp

primary
#28420B
secondary
#522A7F
accent
#3AEE8F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #28420B

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

Preview Lab → · Contrast checker → · Palette generator →

#28420B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva