#28581C#28581C

#28581C is a dark, moderate green. Relative luminance 0.075; OKLCH L 41.2% C 0.105 H 139.8°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#28581C
RGBrgb(40, 88, 28)
HSLhsl(108, 52%, 23%)
HSVhsv(108, 68%, 35%)
CMYKcmyk(54.5%, 0%, 68.2%, 65.5%)
CIE-LABlab(32.95, -29.12, 29.05)
CIE-LCHlch(32.95, 41.13, 135.07°)
OKLaboklab(41.22% -0.0799 0.0675)
OKLCHoklch(41.22% 0.105 139.8)
XYZxyz(4.5742, 7.5141, 2.3077)
Luminance0.0751 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28581C #4C1C58
analogous
#46581C #28581C #1C582E
triadic
#28581C #1C2858 #581C28
tetradic
#28581C #1C4658 #4C1C58 #582E1C
square
#28581C #1C4658 #4C1C58 #582E1C
split-complementary
#28581C #2E1C58 #581C46
monochromatic
#0B1707 #132A0D #28581C #3D862B #52B53A

Accessibility & contrast

On white

8.39
#28581C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#28581C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28581C
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28581C#FFFFFF#000000##FFFFFF
##28581C1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5015
Deuteranopia (green-blind)
#544C21
Tritanopia (blue-blind)
#23554B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #28581c;
/* rgb */ color: rgb(40, 88, 28);
/* oklch */ color: oklch(41.2% 0.105 139.8);
Tailwind
colors: {
  custom: {
    50: '#67875b',
    500: '#28581c',
    950: '#000000',
  },
}
SCSS
$custom: #28581c;
$custom-light: #67875b;
$custom-dark: #000000;
JSON
{
  "hex": "#28581c",
  "rgb": {
    "r": 40,
    "g": 88,
    "b": 28
  },
  "hsl": {
    "h": 108,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.41222,
    "c": 0.10455,
    "h": 139.8
  },
  "luminance": 0.07514
}

Semantic roles & 50–950 ramp

primary
#28581C
secondary
#7E428E
accent
#4DDBBF
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #28581C

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

Preview Lab → · Contrast checker → · Palette generator →

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