#28841B#28841B

#28841B is a mid, vivid green. Relative luminance 0.170; OKLCH L 53.9% C 0.163 H 141.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#28841B
RGBrgb(40, 132, 27)
HSLhsl(113, 66%, 31%)
HSVhsv(113, 80%, 52%)
CMYKcmyk(69.7%, 0%, 79.5%, 48.2%)
CIE-LABlab(48.30, -46.56, 45.32)
CIE-LCHlch(48.30, 64.97, 135.78°)
OKLaboklab(53.9% -0.1271 0.1014)
OKLCHoklch(53.9% 0.163 141.4)
XYZxyz(9.3237, 17.0318, 3.8328)
Luminance0.1703 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28841B #771B84
analogous
#5C841B #28841B #1B8442
triadic
#28841B #1B2884 #841B28
tetradic
#28841B #1B5C84 #771B84 #84421B
square
#28841B #1B5C84 #771B84 #84421B
split-complementary
#28841B #421B84 #841B5C
monochromatic
#091E06 #195111 #28841B #37B725 #54D841

Accessibility & contrast

On white

4.77
#28841B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#28841B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28841B
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28841B#FFFFFF#000000##FFFFFF
##28841B1.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877701
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#148070
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #28841b;
/* rgb */ color: rgb(40, 132, 27);
/* oklch */ color: oklch(53.9% 0.163 141.4);
Tailwind
colors: {
  custom: {
    50: '#70a960',
    500: '#28841b',
    950: '#000000',
  },
}
SCSS
$custom: #28841b;
$custom-light: #70a960;
$custom-dark: #000000;
JSON
{
  "hex": "#28841b",
  "rgb": {
    "r": 40,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 112.571,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53902,
    "c": 0.16261,
    "h": 141.4
  },
  "luminance": 0.17033
}

Semantic roles & 50–950 ramp

primary
#28841B
secondary
#A943B7
accent
#3FE9D4
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #28841B

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

Preview Lab → · Contrast checker → · Palette generator →

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