#28571A#28571A

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

Color values

HEX#28571A
RGBrgb(40, 87, 26)
HSLhsl(106, 54%, 22%)
HSVhsv(106, 70%, 34%)
CMYKcmyk(54%, 0%, 70.1%, 65.9%)
CIE-LABlab(32.57, -28.89, 29.62)
CIE-LCHlch(32.57, 41.38, 134.29°)
OKLaboklab(40.91% -0.0794 0.0684)
OKLCHoklch(40.91% 0.105 139.3)
XYZxyz(4.4695, 7.3418, 2.1587)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28571A #491A57
analogous
#46571A #28571A #1A572B
triadic
#28571A #1A2857 #571A28
tetradic
#28571A #1A4657 #491A57 #572B1A
square
#28571A #1A4657 #491A57 #572B1A
split-complementary
#28571A #2B1A57 #571A46
monochromatic
#0B1807 #12280C #28571A #3E8628 #53B536

Accessibility & contrast

On white

8.51
#28571A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28571A
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28571A#FFFFFF#000000##FFFFFF
##28571A1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28571a;
/* rgb */ color: rgb(40, 87, 26);
/* oklch */ color: oklch(40.9% 0.105 139.3);
Tailwind
colors: {
  custom: {
    50: '#67875a',
    500: '#28571a',
    950: '#000000',
  },
}
SCSS
$custom: #28571a;
$custom-light: #67875a;
$custom-dark: #000000;
JSON
{
  "hex": "#28571a",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 26
  },
  "hsl": {
    "h": 106.23,
    "s": 53.982,
    "l": 22.157
  },
  "oklch": {
    "l": 0.40906,
    "c": 0.10481,
    "h": 139.3
  },
  "luminance": 0.07342
}

Semantic roles & 50–950 ramp

primary
#28571A
secondary
#7B408D
accent
#4ADDBC
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #28571A

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

Preview Lab → · Contrast checker → · Palette generator →

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