#28501B#28501B

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

Color values

HEX#28501B
RGBrgb(40, 80, 27)
HSLhsl(105, 50%, 21%)
HSVhsv(105, 66%, 31%)
CMYKcmyk(50%, 0%, 66.3%, 68.6%)
CIE-LABlab(30.08, -25.54, 26.34)
CIE-LCHlch(30.08, 36.69, 134.13°)
OKLaboklab(38.86% -0.0702 0.0616)
OKLCHoklch(38.86% 0.093 138.8)
XYZxyz(3.9414, 6.2673, 2.0387)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28501B #431B50
analogous
#42501B #28501B #1B5028
triadic
#28501B #1B2850 #501B28
tetradic
#28501B #1B4250 #431B50 #50281B
square
#28501B #1B4250 #431B50 #50281B
split-complementary
#28501B #281B50 #501B42
monochromatic
#0B1708 #11220C #28501B #3F7E2A #56AC3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28501B#FFFFFF#000000##FFFFFF
##28501B1.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)
#524915
Deuteranopia (green-blind)
#4D461F
Tritanopia (blue-blind)
#254D45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #28501b;
/* rgb */ color: rgb(40, 80, 27);
/* oklch */ color: oklch(38.9% 0.093 138.8);
Tailwind
colors: {
  custom: {
    50: '#66815a',
    500: '#28501b',
    950: '#000000',
  },
}
SCSS
$custom: #28501b;
$custom-light: #66815a;
$custom-dark: #000000;
JSON
{
  "hex": "#28501b",
  "rgb": {
    "r": 40,
    "g": 80,
    "b": 27
  },
  "hsl": {
    "h": 105.283,
    "s": 49.533,
    "l": 20.98
  },
  "oklch": {
    "l": 0.38861,
    "c": 0.09339,
    "h": 138.8
  },
  "luminance": 0.06268
}

Semantic roles & 50–950 ramp

primary
#28501B
secondary
#754186
accent
#4FD9B7
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A04
muted
#7A7C79

Preview Lab

Preview with #28501B

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

Preview Lab → · Contrast checker → · Palette generator →

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