#28812B#28812B

#28812B is a mid, vivid green. Relative luminance 0.163; OKLCH L 53.2% C 0.148 H 143.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#28812B
RGBrgb(40, 129, 43)
HSLhsl(122, 53%, 33%)
HSVhsv(122, 69%, 51%)
CMYKcmyk(69%, 0%, 66.7%, 49.4%)
CIE-LABlab(47.40, -44.02, 37.91)
CIE-LCHlch(47.40, 58.10, 139.27°)
OKLaboklab(53.19% -0.1194 0.088)
OKLCHoklch(53.19% 0.148 143.6)
XYZxyz(9.1608, 16.3251, 4.9533)
Luminance0.1633 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28812B #81287E
analogous
#528128 #28812B #288157
triadic
#28812B #2B2881 #812B28
tetradic
#28812B #285281 #81287E #815728
square
#28812B #285281 #81287E #815728
split-complementary
#28812B #572881 #812852
monochromatic
#0B240C #1A521B #28812B #36B03B #58CB5C

Accessibility & contrast

On white

4.92
#28812B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#28812B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #28812B
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28812B#FFFFFF#000000##FFFFFF
##28812B1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847520
Deuteranopia (green-blind)
#796E33
Tritanopia (blue-blind)
#117D6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #28812b;
/* rgb */ color: rgb(40, 129, 43);
/* oklch */ color: oklch(53.2% 0.148 143.6);
Tailwind
colors: {
  custom: {
    50: '#6fa668',
    500: '#28812b',
    950: '#000000',
  },
}
SCSS
$custom: #28812b;
$custom-light: #6fa668;
$custom-dark: #000000;
JSON
{
  "hex": "#28812b",
  "rgb": {
    "r": 40,
    "g": 129,
    "b": 43
  },
  "hsl": {
    "h": 122.022,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53194,
    "c": 0.14831,
    "h": 143.6
  },
  "luminance": 0.16326
}

Semantic roles & 50–950 ramp

primary
#28812B
secondary
#B054AD
accent
#4CD7DC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #28812B

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

Preview Lab → · Contrast checker → · Palette generator →

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