#28821B#28821B

#28821B is a mid, vivid green. Relative luminance 0.165; OKLCH L 53.3% C 0.160 H 141.4°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#28821B
RGBrgb(40, 130, 27)
HSLhsl(112, 66%, 31%)
HSVhsv(112, 79%, 51%)
CMYKcmyk(69.2%, 0%, 79.2%, 49%)
CIE-LABlab(47.62, -45.85, 44.65)
CIE-LCHlch(47.62, 64.00, 135.76°)
OKLaboklab(53.34% -0.1252 0.1)
OKLCHoklch(53.34% 0.16 141.4)
XYZxyz(9.0551, 16.4946, 3.7433)
Luminance0.1650 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28821B #751B82
analogous
#5B821B #28821B #1B8241
triadic
#28821B #1B2882 #821B28
tetradic
#28821B #1B5B82 #751B82 #82411B
square
#28821B #1B5B82 #751B82 #82411B
split-complementary
#28821B #411B82 #821B5B
monochromatic
#091D06 #184F10 #28821B #38B526 #53D740

Accessibility & contrast

On white

4.88
#28821B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#28821B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28821B
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28821B#FFFFFF#000000##FFFFFF
##28821B1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857502
Deuteranopia (green-blind)
#7B6E27
Tritanopia (blue-blind)
#157E6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #28821b;
/* rgb */ color: rgb(40, 130, 27);
/* oklch */ color: oklch(53.3% 0.160 141.4);
Tailwind
colors: {
  custom: {
    50: '#70a760',
    500: '#28821b',
    950: '#000000',
  },
}
SCSS
$custom: #28821b;
$custom-light: #70a760;
$custom-dark: #000000;
JSON
{
  "hex": "#28821b",
  "rgb": {
    "r": 40,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 112.427,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53336,
    "c": 0.16025,
    "h": 141.4
  },
  "luminance": 0.16496
}

Semantic roles & 50–950 ramp

primary
#28821B
secondary
#A743B6
accent
#3FE9D3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #28821B

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

Preview Lab → · Contrast checker → · Palette generator →

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