#28420C#28420C

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

Color values

HEX#28420C
RGBrgb(40, 66, 12)
HSLhsl(89, 69%, 15%)
HSVhsv(89, 82%, 26%)
CMYKcmyk(39.4%, 0%, 81.8%, 74.1%)
CIE-LABlab(24.87, -20.12, 28.04)
CIE-LCHlch(24.87, 34.51, 125.66°)
OKLaboklab(34.56% -0.0568 0.063)
OKLCHoklch(34.56% 0.085 132)
XYZxyz(2.8896, 4.3740, 1.0398)
Luminance0.0437 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28420C #260C42
analogous
#42410C #28420C #0D420C
triadic
#28420C #0C2842 #420C28
tetradic
#28420C #0C4241 #260C42 #420C0D
square
#28420C #0C4241 #260C42 #420C0D
split-complementary
#28420C #0C0D42 #410C42
monochromatic
#101A05 #101A05 #28420C #477615 #67AA1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28420C#FFFFFF#000000##FFFFFF
##28420C1.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)
#453C04
Deuteranopia (green-blind)
#423A11
Tritanopia (blue-blind)
#293F38
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #28420c;
/* rgb */ color: rgb(40, 66, 12);
/* oklch */ color: oklch(34.6% 0.085 132.0);
Tailwind
colors: {
  custom: {
    50: '#65764f',
    500: '#28420c',
    950: '#000000',
  },
}
SCSS
$custom: #28420c;
$custom-light: #65764f;
$custom-dark: #000000;
JSON
{
  "hex": "#28420c",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 88.889,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.34556,
    "c": 0.08477,
    "h": 132
  },
  "luminance": 0.04374
}

Semantic roles & 50–950 ramp

primary
#28420C
secondary
#532C7E
accent
#3CEC91
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060802
muted
#7A7B78

Preview Lab

Preview with #28420C

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

Preview Lab → · Contrast checker → · Palette generator →

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