#288B21#288B21

#288B21 is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.9% C 0.167 H 142.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#288B21
RGBrgb(40, 139, 33)
HSLhsl(116, 62%, 34%)
HSVhsv(116, 76%, 55%)
CMYKcmyk(71.2%, 0%, 76.3%, 45.5%)
CIE-LABlab(50.72, -48.56, 45.56)
CIE-LCHlch(50.72, 66.59, 136.83°)
OKLaboklab(55.92% -0.1322 0.1028)
OKLCHoklch(55.92% 0.167 142.1)
XYZxyz(10.3816, 19.0250, 4.5636)
Luminance0.1903 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#288B21 #84218B
analogous
#5D8B21 #288B21 #218B4F
triadic
#288B21 #21288B #8B2128
tetradic
#288B21 #215D8B #84218B #8B4F21
square
#288B21 #215D8B #84218B #8B4F21
split-complementary
#288B21 #4F218B #8B215D
monochromatic
#0C280A #1A5A15 #288B21 #36BC2D #5AD651

Accessibility & contrast

On white

4.37
#288B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#288B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #288B21
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##288B21#FFFFFF#000000##000000
##288B211.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E0B
Deuteranopia (green-blind)
#83762C
Tritanopia (blue-blind)
#0D8777
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #288b21;
/* rgb */ color: rgb(40, 139, 33);
/* oklch */ color: oklch(55.9% 0.167 142.1);
Tailwind
colors: {
  custom: {
    50: '#72ae64',
    500: '#288b21',
    950: '#000000',
  },
}
SCSS
$custom: #288b21;
$custom-light: #72ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#288b21",
  "rgb": {
    "r": 40,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 116.038,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.55918,
    "c": 0.16745,
    "h": 142.1
  },
  "luminance": 0.19026
}

Semantic roles & 50–950 ramp

primary
#288B21
secondary
#B24FB9
accent
#43E5DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #288B21

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

Preview Lab → · Contrast checker → · Palette generator →

#288B21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva