#288D20#288D20

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

Color values

HEX#288D20
RGBrgb(40, 141, 32)
HSLhsl(116, 63%, 34%)
HSVhsv(116, 77%, 55%)
CMYKcmyk(71.6%, 0%, 77.3%, 44.7%)
CIE-LABlab(51.39, -49.33, 46.59)
CIE-LCHlch(51.39, 67.85, 136.64°)
OKLaboklab(56.47% -0.1343 0.1048)
OKLCHoklch(56.47% 0.17 142)
XYZxyz(10.6601, 19.6040, 4.5884)
Luminance0.1961 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#288D20 #85208D
analogous
#5F8D20 #288D20 #208D4F
triadic
#288D20 #20288D #8D2028
tetradic
#288D20 #205F8D #85208D #8D4F20
square
#288D20 #205F8D #85208D #8D4F20
split-complementary
#288D20 #4F208D #8D205F
monochromatic
#0C2909 #1A5B15 #288D20 #36BF2B #5AD750

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##288D20#FFFFFF#000000##000000
##288D201.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)
#907F08
Deuteranopia (green-blind)
#85772C
Tritanopia (blue-blind)
#0C8978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #288d20;
/* rgb */ color: rgb(40, 141, 32);
/* oklch */ color: oklch(56.5% 0.170 142.0);
Tailwind
colors: {
  custom: {
    50: '#72af64',
    500: '#288d20',
    950: '#000000',
  },
}
SCSS
$custom: #288d20;
$custom-light: #72af64;
$custom-dark: #000000;
JSON
{
  "hex": "#288d20",
  "rgb": {
    "r": 40,
    "g": 141,
    "b": 32
  },
  "hsl": {
    "h": 115.596,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56472,
    "c": 0.17038,
    "h": 142
  },
  "luminance": 0.19605
}

Semantic roles & 50–950 ramp

primary
#288D20
secondary
#B34EBA
accent
#42E6DA
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #288D20

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

Preview Lab → · Contrast checker → · Palette generator →

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