#28401B#28401B

#28401B is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.2% C 0.067 H 135.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#28401B
RGBrgb(40, 64, 27)
HSLhsl(99, 41%, 18%)
HSVhsv(99, 58%, 25%)
CMYKcmyk(37.5%, 0%, 57.8%, 74.9%)
CIE-LABlab(24.31, -17.41, 19.58)
CIE-LCHlch(24.31, 26.20, 131.64°)
OKLaboklab(34.16% -0.048 0.0469)
OKLCHoklch(34.16% 0.067 135.7)
XYZxyz(2.9062, 4.1969, 1.6937)
Luminance0.0420 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28401B #331B40
analogous
#3A401B #28401B #1B4020
triadic
#28401B #1B2840 #401B28
tetradic
#28401B #1B3A40 #331B40 #40201B
square
#28401B #1B3A40 #331B40 #40201B
split-complementary
#28401B #201B40 #401B3A
monochromatic
#0D1609 #0D1609 #28401B #436B2D #5E963F

Accessibility & contrast

On white

11.42
#28401B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#28401B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28401B
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28401B#FFFFFF#000000##FFFFFF
##28401B1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423B18
Deuteranopia (green-blind)
#3F391D
Tritanopia (blue-blind)
#273E38
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #28401b;
/* rgb */ color: rgb(40, 64, 27);
/* oklch */ color: oklch(34.2% 0.067 135.7);
Tailwind
colors: {
  custom: {
    50: '#637558',
    500: '#28401b',
    950: '#000000',
  },
}
SCSS
$custom: #28401b;
$custom-light: #637558;
$custom-dark: #000000;
JSON
{
  "hex": "#28401b",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 27
  },
  "hsl": {
    "h": 98.919,
    "s": 40.659,
    "l": 17.843
  },
  "oklch": {
    "l": 0.34155,
    "c": 0.06708,
    "h": 135.7
  },
  "luminance": 0.04197
}

Semantic roles & 50–950 ramp

primary
#28401B
secondary
#634175
accent
#57D1A6
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#050803
muted
#7A7B78

Preview Lab

Preview with #28401B

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

Preview Lab → · Contrast checker → · Palette generator →

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