#288E1F#288E1F

#288E1F is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.7% C 0.172 H 142.0°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#288E1F
RGBrgb(40, 142, 31)
HSLhsl(115, 64%, 34%)
HSVhsv(115, 78%, 56%)
CMYKcmyk(71.8%, 0%, 78.2%, 44.3%)
CIE-LABlab(51.72, -49.75, 47.26)
CIE-LCHlch(51.72, 68.62, 136.47°)
OKLaboklab(56.75% -0.1355 0.1061)
OKLCHoklch(56.75% 0.172 142)
XYZxyz(10.7948, 19.8949, 4.5673)
Luminance0.1990 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#288E1F #851F8E
analogous
#608E1F #288E1F #1F8E4E
triadic
#288E1F #1F288E #8E1F28
tetradic
#288E1F #1F608E #851F8E #8E4E1F
square
#288E1F #1F608E #851F8E #8E4E1F
split-complementary
#288E1F #4E1F8E #8E1F60
monochromatic
#0C2A09 #1A5C14 #288E1F #36C02A #5AD94F

Accessibility & contrast

On white

4.22
#288E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#288E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #288E1F
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##288E1F#FFFFFF#000000##000000
##288E1F1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#918004
Deuteranopia (green-blind)
#86782B
Tritanopia (blue-blind)
#0B8979
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #288e1f;
/* rgb */ color: rgb(40, 142, 31);
/* oklch */ color: oklch(56.7% 0.172 142.0);
Tailwind
colors: {
  custom: {
    50: '#72b063',
    500: '#288e1f',
    950: '#000000',
  },
}
SCSS
$custom: #288e1f;
$custom-light: #72b063;
$custom-dark: #000000;
JSON
{
  "hex": "#288e1f",
  "rgb": {
    "r": 40,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 115.135,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56745,
    "c": 0.17209,
    "h": 142
  },
  "luminance": 0.19896
}

Semantic roles & 50–950 ramp

primary
#288E1F
secondary
#B34DBB
accent
#41E7DA
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091106
muted
#7B807A

Preview Lab

Preview with #288E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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