#28420F#28420F

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

Color values

HEX#28420F
RGBrgb(40, 66, 15)
HSLhsl(91, 63%, 16%)
HSVhsv(91, 77%, 26%)
CMYKcmyk(39.4%, 0%, 77.3%, 74.1%)
CIE-LABlab(24.90, -19.87, 26.70)
CIE-LCHlch(24.90, 33.28, 126.65°)
OKLaboklab(34.59% -0.0558 0.0607)
OKLCHoklch(34.59% 0.082 132.6)
XYZxyz(2.9095, 4.3819, 1.1443)
Luminance0.0438 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28420F #290F42
analogous
#41420F #28420F #0F420F
triadic
#28420F #0F2842 #420F28
tetradic
#28420F #0F4142 #290F42 #420F0F
square
#28420F #0F4142 #290F42 #420F0F
split-complementary
#28420F #0F0F42 #420F41
monochromatic
#0F1906 #0F1906 #28420F #46741A #64A626

Accessibility & contrast

On white

11.19
#28420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28420F
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28420F#FFFFFF#000000##FFFFFF
##28420F1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C08
Deuteranopia (green-blind)
#413A13
Tritanopia (blue-blind)
#283F38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28420f;
/* rgb */ color: rgb(40, 66, 15);
/* oklch */ color: oklch(34.6% 0.082 132.6);
Tailwind
colors: {
  custom: {
    50: '#647651',
    500: '#28420f',
    950: '#000000',
  },
}
SCSS
$custom: #28420f;
$custom-light: #647651;
$custom-dark: #000000;
JSON
{
  "hex": "#28420f",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 90.588,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.34585,
    "c": 0.08243,
    "h": 132.6
  },
  "luminance": 0.04382
}

Semantic roles & 50–950 ramp

primary
#28420F
secondary
#57307C
accent
#42E696
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #28420F

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

Preview Lab → · Contrast checker → · Palette generator →

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