#28420A#28420A

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

Color values

HEX#28420A
RGBrgb(40, 66, 10)
HSLhsl(88, 74%, 15%)
HSVhsv(88, 85%, 26%)
CMYKcmyk(39.4%, 0%, 84.8%, 74.1%)
CIE-LABlab(24.86, -20.26, 28.86)
CIE-LCHlch(24.86, 35.26, 125.08°)
OKLaboklab(34.54% -0.0573 0.0643)
OKLCHoklch(34.54% 0.086 131.7)
XYZxyz(2.8780, 4.3693, 0.9788)
Luminance0.0437 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28420A #240A42
analogous
#42400A #28420A #0C420A
triadic
#28420A #0A2842 #420A28
tetradic
#28420A #0A4240 #240A42 #420A0C
square
#28420A #0A4240 #240A42 #420A0C
split-complementary
#28420A #0A0C42 #400A42
monochromatic
#101B04 #101B04 #28420A #487712 #68AC1A

Accessibility & contrast

On white

11.21
#28420A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28420A
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28420A#FFFFFF#000000##FFFFFF
##28420A1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28420a;
/* rgb */ color: rgb(40, 66, 10);
/* oklch */ color: oklch(34.5% 0.086 131.7);
Tailwind
colors: {
  custom: {
    50: '#65764e',
    500: '#28420a',
    950: '#000000',
  },
}
SCSS
$custom: #28420a;
$custom-light: #65764e;
$custom-dark: #000000;
JSON
{
  "hex": "#28420a",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 10
  },
  "hsl": {
    "h": 87.857,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.3454,
    "c": 0.08616,
    "h": 131.7
  },
  "luminance": 0.04369
}

Semantic roles & 50–950 ramp

primary
#28420A
secondary
#51297F
accent
#37F08D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #28420A

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

Preview Lab → · Contrast checker → · Palette generator →

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