#28812F#28812F

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

Color values

HEX#28812F
RGBrgb(40, 129, 47)
HSLhsl(125, 53%, 33%)
HSVhsv(125, 69%, 51%)
CMYKcmyk(69%, 0%, 63.6%, 49.4%)
CIE-LABlab(47.44, -43.55, 36.08)
CIE-LCHlch(47.44, 56.56, 140.36°)
OKLaboklab(53.24% -0.1179 0.0845)
OKLCHoklch(53.24% 0.145 144.4)
XYZxyz(9.2378, 16.3559, 5.3589)
Luminance0.1636 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28812F #81287A
analogous
#4D8128 #28812F #28815B
triadic
#28812F #2F2881 #812F28
tetradic
#28812F #284D81 #81287A #815B28
square
#28812F #284D81 #81287A #815B28
split-complementary
#28812F #5B2881 #81284D
monochromatic
#0B240D #1A521E #28812F #36B040 #58CB61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28812F#FFFFFF#000000##FFFFFF
##28812F1.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)
#837526
Deuteranopia (green-blind)
#796E36
Tritanopia (blue-blind)
#0F7E70
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #28812f;
/* rgb */ color: rgb(40, 129, 47);
/* oklch */ color: oklch(53.2% 0.145 144.4);
Tailwind
colors: {
  custom: {
    50: '#6fa66b',
    500: '#28812f',
    950: '#000000',
  },
}
SCSS
$custom: #28812f;
$custom-light: #6fa66b;
$custom-dark: #000000;
JSON
{
  "hex": "#28812f",
  "rgb": {
    "r": 40,
    "g": 129,
    "b": 47
  },
  "hsl": {
    "h": 124.719,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5324,
    "c": 0.14508,
    "h": 144.4
  },
  "luminance": 0.16357
}

Semantic roles & 50–950 ramp

primary
#28812F
secondary
#B054A9
accent
#4CD1DC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #28812F

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

Preview Lab → · Contrast checker → · Palette generator →

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