#28420D#28420D

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

Color values

HEX#28420D
RGBrgb(40, 66, 13)
HSLhsl(89, 67%, 15%)
HSVhsv(89, 80%, 26%)
CMYKcmyk(39.4%, 0%, 80.3%, 74.1%)
CIE-LABlab(24.88, -20.04, 27.60)
CIE-LCHlch(24.88, 34.11, 125.98°)
OKLaboklab(34.57% -0.0564 0.0622)
OKLCHoklch(34.57% 0.084 132.2)
XYZxyz(2.8959, 4.3765, 1.0729)
Luminance0.0438 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28420D #270D42
analogous
#42410D #28420D #0D420D
triadic
#28420D #0D2842 #420D28
tetradic
#28420D #0D4241 #270D42 #420D0D
square
#28420D #0D4241 #270D42 #420D0D
split-complementary
#28420D #0D0D42 #410D42
monochromatic
#0F1A05 #0F1A05 #28420D #477517 #66A821

Accessibility & contrast

On white

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

On black

1.88
#28420D on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##28420D#FFFFFF#000000##FFFFFF
##28420D1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C05
Deuteranopia (green-blind)
#423A12
Tritanopia (blue-blind)
#293F38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28420d;
/* rgb */ color: rgb(40, 66, 13);
/* oklch */ color: oklch(34.6% 0.084 132.2);
Tailwind
colors: {
  custom: {
    50: '#65764f',
    500: '#28420d',
    950: '#000000',
  },
}
SCSS
$custom: #28420d;
$custom-light: #65764f;
$custom-dark: #000000;
JSON
{
  "hex": "#28420d",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 13
  },
  "hsl": {
    "h": 89.434,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.34565,
    "c": 0.08402,
    "h": 132.2
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

primary
#28420D
secondary
#552D7E
accent
#3EEA92
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #28420D

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

Preview Lab → · Contrast checker → · Palette generator →

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