#28812D#28812D

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

Color values

HEX#28812D
RGBrgb(40, 129, 45)
HSLhsl(123, 53%, 33%)
HSVhsv(123, 69%, 51%)
CMYKcmyk(69%, 0%, 65.1%, 49.4%)
CIE-LABlab(47.42, -43.79, 37.01)
CIE-LCHlch(47.42, 57.33, 139.80°)
OKLaboklab(53.22% -0.1187 0.0863)
OKLCHoklch(53.22% 0.147 144)
XYZxyz(9.1984, 16.3401, 5.1513)
Luminance0.1634 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28812D #81287C
analogous
#4F8128 #28812D #288159
triadic
#28812D #2D2881 #812D28
tetradic
#28812D #284F81 #81287C #815928
square
#28812D #284F81 #81287C #815928
split-complementary
#28812D #592881 #81284F
monochromatic
#0B240C #1A521D #28812D #36B03D #58CB5F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##28812D#FFFFFF#000000##FFFFFF
##28812D1.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)
#847523
Deuteranopia (green-blind)
#796E34
Tritanopia (blue-blind)
#107D6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #28812d;
/* rgb */ color: rgb(40, 129, 45);
/* oklch */ color: oklch(53.2% 0.147 144.0);
Tailwind
colors: {
  custom: {
    50: '#6fa669',
    500: '#28812d',
    950: '#000000',
  },
}
SCSS
$custom: #28812d;
$custom-light: #6fa669;
$custom-dark: #000000;
JSON
{
  "hex": "#28812d",
  "rgb": {
    "r": 40,
    "g": 129,
    "b": 45
  },
  "hsl": {
    "h": 123.371,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53216,
    "c": 0.14672,
    "h": 144
  },
  "luminance": 0.16341
}

Semantic roles & 50–950 ramp

primary
#28812D
secondary
#B054AB
accent
#4CD4DC
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #28812D

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

Preview Lab → · Contrast checker → · Palette generator →

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