#288A1F#288A1F

#288A1F is a mid, vivid green. Relative luminance 0.187; OKLCH L 55.6% C 0.167 H 141.9°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#288A1F
RGBrgb(40, 138, 31)
HSLhsl(115, 63%, 33%)
HSVhsv(115, 78%, 54%)
CMYKcmyk(71%, 0%, 77.5%, 45.9%)
CIE-LABlab(50.37, -48.37, 45.93)
CIE-LCHlch(50.37, 66.71, 136.48°)
OKLaboklab(55.62% -0.1318 0.1033)
OKLCHoklch(55.62% 0.167 141.9)
XYZxyz(10.2103, 18.7259, 4.3724)
Luminance0.1873 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#288A1F #811F8A
analogous
#5D8A1F #288A1F #1F8A4B
triadic
#288A1F #1F288A #8A1F28
tetradic
#288A1F #1F5D8A #811F8A #8A4B1F
square
#288A1F #1F5D8A #811F8A #8A4B1F
split-complementary
#288A1F #4B1F8A #8A1F5D
monochromatic
#0B2609 #1A5814 #288A1F #36BC2A #58D74C

Accessibility & contrast

On white

4.43
#288A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#288A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #288A1F
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##288A1F#FFFFFF#000000##000000
##288A1F1.004.434.754.75
#FFFFFF4.431.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D07
Deuteranopia (green-blind)
#82752B
Tritanopia (blue-blind)
#0F8676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #288a1f;
/* rgb */ color: rgb(40, 138, 31);
/* oklch */ color: oklch(55.6% 0.167 141.9);
Tailwind
colors: {
  custom: {
    50: '#71ad63',
    500: '#288a1f',
    950: '#000000',
  },
}
SCSS
$custom: #288a1f;
$custom-light: #71ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#288a1f",
  "rgb": {
    "r": 40,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 114.953,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55622,
    "c": 0.16744,
    "h": 141.9
  },
  "luminance": 0.18727
}

Semantic roles & 50–950 ramp

primary
#288A1F
secondary
#B04BBA
accent
#41E6D8
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #288A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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