#287E1B#287E1B

#287E1B is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.155 H 141.3°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#287E1B
RGBrgb(40, 126, 27)
HSLhsl(112, 65%, 30%)
HSVhsv(112, 79%, 49%)
CMYKcmyk(68.3%, 0%, 78.6%, 50.6%)
CIE-LABlab(46.25, -44.41, 43.31)
CIE-LCHlch(46.25, 62.04, 135.72°)
OKLaboklab(52.2% -0.1213 0.0972)
OKLCHoklch(52.2% 0.155 141.3)
XYZxyz(8.5333, 15.4511, 3.5694)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E1B #711B7E
analogous
#5A7E1B #287E1B #1B7E3F
triadic
#287E1B #1B287E #7E1B28
tetradic
#287E1B #1B5A7E #711B7E #7E3F1B
square
#287E1B #1B5A7E #711B7E #7E3F1B
split-complementary
#287E1B #3F1B7E #7E1B5A
monochromatic
#081905 #184C10 #287E1B #38B026 #52D63E

Accessibility & contrast

On white

5.13
#287E1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#287E1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287E1B
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E1B#FFFFFF#000000##FFFFFF
##287E1B1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817205
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#177A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e1b;
/* rgb */ color: rgb(40, 126, 27);
/* oklch */ color: oklch(52.2% 0.155 141.3);
Tailwind
colors: {
  custom: {
    50: '#6fa45f',
    500: '#287e1b',
    950: '#000000',
  },
}
SCSS
$custom: #287e1b;
$custom-light: #6fa45f;
$custom-dark: #000000;
JSON
{
  "hex": "#287e1b",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 112.121,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.52199,
    "c": 0.15547,
    "h": 141.3
  },
  "luminance": 0.15452
}

Semantic roles & 50–950 ramp

primary
#287E1B
secondary
#A343B2
accent
#40E8D2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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