#287A1B#287A1B

#287A1B is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.1% C 0.151 H 141.2°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#287A1B
RGBrgb(40, 122, 27)
HSLhsl(112, 64%, 29%)
HSVhsv(112, 78%, 48%)
CMYKcmyk(67.2%, 0%, 77.9%, 52.2%)
CIE-LABlab(44.87, -42.95, 41.95)
CIE-LCHlch(44.87, 60.04, 135.68°)
OKLaboklab(51.06% -0.1174 0.0944)
OKLCHoklch(51.06% 0.151 141.2)
XYZxyz(8.0320, 14.4485, 3.4023)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A1B #6D1B7A
analogous
#587A1B #287A1B #1B7A3D
triadic
#287A1B #1B287A #7A1B28
tetradic
#287A1B #1B587A #6D1B7A #7A3D1B
square
#287A1B #1B587A #6D1B7A #7A3D1B
split-complementary
#287A1B #3D1B7A #7A1B58
monochromatic
#081906 #184810 #287A1B #38AC26 #50D43C

Accessibility & contrast

On white

5.40
#287A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#287A1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287A1B
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287A1B#FFFFFF#000000##FFFFFF
##287A1B1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E07
Deuteranopia (green-blind)
#736825
Tritanopia (blue-blind)
#197668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #287a1b;
/* rgb */ color: rgb(40, 122, 27);
/* oklch */ color: oklch(51.1% 0.151 141.2);
Tailwind
colors: {
  custom: {
    50: '#6ea15f',
    500: '#287a1b',
    950: '#000000',
  },
}
SCSS
$custom: #287a1b;
$custom-light: #6ea15f;
$custom-dark: #000000;
JSON
{
  "hex": "#287a1b",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 111.789,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51059,
    "c": 0.15062,
    "h": 141.2
  },
  "luminance": 0.14449
}

Semantic roles & 50–950 ramp

primary
#287A1B
secondary
#9F43AE
accent
#41E7D0
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287A1B

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

Preview Lab → · Contrast checker → · Palette generator →

#287A1B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva