#28831B#28831B

#28831B is a mid, vivid green. Relative luminance 0.168; OKLCH L 53.6% C 0.161 H 141.4°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#28831B
RGBrgb(40, 131, 27)
HSLhsl(113, 66%, 31%)
HSVhsv(113, 79%, 51%)
CMYKcmyk(69.5%, 0%, 79.4%, 48.6%)
CIE-LABlab(47.96, -46.21, 44.98)
CIE-LCHlch(47.96, 64.49, 135.77°)
OKLaboklab(53.62% -0.1262 0.1007)
OKLCHoklch(53.62% 0.161 141.4)
XYZxyz(9.1887, 16.7619, 3.7878)
Luminance0.1676 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28831B #761B83
analogous
#5C831B #28831B #1B8342
triadic
#28831B #1B2883 #831B28
tetradic
#28831B #1B5C83 #761B83 #83421B
square
#28831B #1B5C83 #761B83 #83421B
split-complementary
#28831B #421B83 #831B5C
monochromatic
#091E06 #195011 #28831B #37B625 #54D841

Accessibility & contrast

On white

4.82
#28831B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#28831B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28831B
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28831B#FFFFFF#000000##FFFFFF
##28831B1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867602
Deuteranopia (green-blind)
#7C6F27
Tritanopia (blue-blind)
#157F6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #28831b;
/* rgb */ color: rgb(40, 131, 27);
/* oklch */ color: oklch(53.6% 0.161 141.4);
Tailwind
colors: {
  custom: {
    50: '#70a860',
    500: '#28831b',
    950: '#000000',
  },
}
SCSS
$custom: #28831b;
$custom-light: #70a860;
$custom-dark: #000000;
JSON
{
  "hex": "#28831b",
  "rgb": {
    "r": 40,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 112.5,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53619,
    "c": 0.16143,
    "h": 141.4
  },
  "luminance": 0.16763
}

Semantic roles & 50–950 ramp

primary
#28831B
secondary
#A843B6
accent
#3FE9D4
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #28831B

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

Preview Lab → · Contrast checker → · Palette generator →

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