#288D21#288D21

#288D21 is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.5% C 0.170 H 142.2°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#288D21
RGBrgb(40, 141, 33)
HSLhsl(116, 62%, 34%)
HSVhsv(116, 77%, 55%)
CMYKcmyk(71.6%, 0%, 76.6%, 44.7%)
CIE-LABlab(51.39, -49.26, 46.23)
CIE-LCHlch(51.39, 67.55, 136.81°)
OKLaboklab(56.48% -0.1341 0.1042)
OKLCHoklch(56.48% 0.17 142.2)
XYZxyz(10.6739, 19.6095, 4.6610)
Luminance0.1961 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#288D21 #86218D
analogous
#5E8D21 #288D21 #218D50
triadic
#288D21 #21288D #8D2128
tetradic
#288D21 #215E8D #86218D #8D5021
square
#288D21 #215E8D #86218D #8D5021
split-complementary
#288D21 #50218D #8D215E
monochromatic
#0C2A0A #1A5B15 #288D21 #36BF2D #5BD652

Accessibility & contrast

On white

4.27
#288D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#288D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #288D21
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##288D21#FFFFFF#000000##000000
##288D211.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0A
Deuteranopia (green-blind)
#85772D
Tritanopia (blue-blind)
#0B8978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #288d21;
/* rgb */ color: rgb(40, 141, 33);
/* oklch */ color: oklch(56.5% 0.170 142.2);
Tailwind
colors: {
  custom: {
    50: '#72af64',
    500: '#288d21',
    950: '#000000',
  },
}
SCSS
$custom: #288d21;
$custom-light: #72af64;
$custom-dark: #000000;
JSON
{
  "hex": "#288d21",
  "rgb": {
    "r": 40,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 116.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56479,
    "c": 0.1698,
    "h": 142.2
  },
  "luminance": 0.19611
}

Semantic roles & 50–950 ramp

primary
#288D21
secondary
#B350BA
accent
#43E5DB
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #288D21

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

Preview Lab → · Contrast checker → · Palette generator →

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