#28501C#28501C

#28501C is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.9% C 0.092 H 139.1°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#28501C
RGBrgb(40, 80, 28)
HSLhsl(106, 48%, 21%)
HSVhsv(106, 65%, 31%)
CMYKcmyk(50%, 0%, 65%, 68.6%)
CIE-LABlab(30.09, -25.42, 25.82)
CIE-LCHlch(30.09, 36.24, 134.55°)
OKLaboklab(38.87% -0.0698 0.0606)
OKLCHoklch(38.87% 0.092 139.1)
XYZxyz(3.9532, 6.2720, 2.1007)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28501C #441C50
analogous
#42501C #28501C #1C502A
triadic
#28501C #1C2850 #501C28
tetradic
#28501C #1C4250 #441C50 #502A1C
square
#28501C #1C4250 #441C50 #502A1C
split-complementary
#28501C #2A1C50 #501C42
monochromatic
#0B1708 #11230C #28501C #3F7D2C #55AB3C

Accessibility & contrast

On white

9.32
#28501C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#28501C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28501C
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28501C#FFFFFF#000000##FFFFFF
##28501C1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524916
Deuteranopia (green-blind)
#4D4620
Tritanopia (blue-blind)
#254D45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #28501c;
/* rgb */ color: rgb(40, 80, 28);
/* oklch */ color: oklch(38.9% 0.092 139.1);
Tailwind
colors: {
  custom: {
    50: '#66815a',
    500: '#28501c',
    950: '#000000',
  },
}
SCSS
$custom: #28501c;
$custom-light: #66815a;
$custom-dark: #000000;
JSON
{
  "hex": "#28501c",
  "rgb": {
    "r": 40,
    "g": 80,
    "b": 28
  },
  "hsl": {
    "h": 106.154,
    "s": 48.148,
    "l": 21.176
  },
  "oklch": {
    "l": 0.38874,
    "c": 0.09243,
    "h": 139.1
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

primary
#28501C
secondary
#764286
accent
#50D8B8
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #28501C

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

Preview Lab → · Contrast checker → · Palette generator →

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