#28571B#28571B

#28571B is a dark, moderate green. Relative luminance 0.073; OKLCH L 40.9% C 0.104 H 139.5°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#28571B
RGBrgb(40, 87, 27)
HSLhsl(107, 53%, 22%)
HSVhsv(107, 69%, 34%)
CMYKcmyk(54%, 0%, 69%, 65.9%)
CIE-LABlab(32.58, -28.78, 29.14)
CIE-LCHlch(32.58, 40.96, 134.65°)
OKLaboklab(40.92% -0.079 0.0675)
OKLCHoklch(40.92% 0.104 139.5)
XYZxyz(4.4809, 7.3463, 2.2186)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28571B #4A1B57
analogous
#46571B #28571B #1B572C
triadic
#28571B #1B2857 #571B28
tetradic
#28571B #1B4657 #4A1B57 #572C1B
square
#28571B #1B4657 #4A1B57 #572C1B
split-complementary
#28571B #2C1B57 #571B46
monochromatic
#0B1707 #13280D #28571B #3D8629 #53B438

Accessibility & contrast

On white

8.50
#28571B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#28571B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28571B
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28571B#FFFFFF#000000##FFFFFF
##28571B1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F14
Deuteranopia (green-blind)
#534B20
Tritanopia (blue-blind)
#24544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #28571b;
/* rgb */ color: rgb(40, 87, 27);
/* oklch */ color: oklch(40.9% 0.104 139.5);
Tailwind
colors: {
  custom: {
    50: '#67875a',
    500: '#28571b',
    950: '#000000',
  },
}
SCSS
$custom: #28571b;
$custom-light: #67875a;
$custom-dark: #000000;
JSON
{
  "hex": "#28571b",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 107,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.40917,
    "c": 0.10395,
    "h": 139.5
  },
  "luminance": 0.07347
}

Semantic roles & 50–950 ramp

primary
#28571B
secondary
#7C418D
accent
#4CDCBD
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #28571B

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

Preview Lab → · Contrast checker → · Palette generator →

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