#288D1F#288D1F

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

Color values

HEX#288D1F
RGBrgb(40, 141, 31)
HSLhsl(115, 64%, 34%)
HSVhsv(115, 78%, 55%)
CMYKcmyk(71.6%, 0%, 78%, 44.7%)
CIE-LABlab(51.38, -49.41, 46.93)
CIE-LCHlch(51.38, 68.15, 136.47°)
OKLaboklab(56.47% -0.1346 0.1054)
OKLCHoklch(56.47% 0.171 141.9)
XYZxyz(10.6467, 19.5986, 4.5179)
Luminance0.1960 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#288D1F #841F8D
analogous
#5F8D1F #288D1F #1F8D4D
triadic
#288D1F #1F288D #8D1F28
tetradic
#288D1F #1F5F8D #841F8D #8D4D1F
square
#288D1F #1F5F8D #841F8D #8D4D1F
split-complementary
#288D1F #4D1F8D #8D1F5F
monochromatic
#0C2909 #1A5B14 #288D1F #36BF2A #5AD84E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##288D1F#FFFFFF#000000##000000
##288D1F1.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)
#907F05
Deuteranopia (green-blind)
#85772B
Tritanopia (blue-blind)
#0C8978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #288d1f;
/* rgb */ color: rgb(40, 141, 31);
/* oklch */ color: oklch(56.5% 0.171 141.9);
Tailwind
colors: {
  custom: {
    50: '#72af63',
    500: '#288d1f',
    950: '#000000',
  },
}
SCSS
$custom: #288d1f;
$custom-light: #72af63;
$custom-dark: #000000;
JSON
{
  "hex": "#288d1f",
  "rgb": {
    "r": 40,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 115.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56465,
    "c": 0.17093,
    "h": 141.9
  },
  "luminance": 0.196
}

Semantic roles & 50–950 ramp

primary
#288D1F
secondary
#B24DBB
accent
#41E7D9
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #288D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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