#28571C#28571C

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

Color values

HEX#28571C
RGBrgb(40, 87, 28)
HSLhsl(108, 51%, 23%)
HSVhsv(108, 68%, 34%)
CMYKcmyk(54%, 0%, 67.8%, 65.9%)
CIE-LABlab(32.59, -28.67, 28.65)
CIE-LCHlch(32.59, 40.53, 135.02°)
OKLaboklab(40.93% -0.0787 0.0666)
OKLCHoklch(40.93% 0.103 139.7)
XYZxyz(4.4927, 7.3510, 2.2805)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28571C #4B1C57
analogous
#45571C #28571C #1C572E
triadic
#28571C #1C2857 #571C28
tetradic
#28571C #1C4557 #4B1C57 #572E1C
square
#28571C #1C4557 #4B1C57 #572E1C
split-complementary
#28571C #2E1C57 #571C45
monochromatic
#0B1707 #13290D #28571C #3D852B #53B43A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28571C#FFFFFF#000000##FFFFFF
##28571C1.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)
#5A4F15
Deuteranopia (green-blind)
#534B21
Tritanopia (blue-blind)
#24544B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #28571c;
/* rgb */ color: rgb(40, 87, 28);
/* oklch */ color: oklch(40.9% 0.103 139.7);
Tailwind
colors: {
  custom: {
    50: '#67875b',
    500: '#28571c',
    950: '#000000',
  },
}
SCSS
$custom: #28571c;
$custom-light: #67875b;
$custom-dark: #000000;
JSON
{
  "hex": "#28571c",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 28
  },
  "hsl": {
    "h": 107.797,
    "s": 51.304,
    "l": 22.549
  },
  "oklch": {
    "l": 0.40929,
    "c": 0.10307,
    "h": 139.7
  },
  "luminance": 0.07351
}

Semantic roles & 50–950 ramp

primary
#28571C
secondary
#7D428D
accent
#4DDBBE
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #28571C

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

Preview Lab → · Contrast checker → · Palette generator →

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