#287E2B#287E2B

#287E2B is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.144 H 143.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#287E2B
RGBrgb(40, 126, 43)
HSLhsl(122, 52%, 33%)
HSVhsv(122, 68%, 49%)
CMYKcmyk(68.3%, 0%, 65.9%, 50.6%)
CIE-LABlab(46.37, -42.90, 36.77)
CIE-LCHlch(46.37, 56.50, 139.40°)
OKLaboklab(52.35% -0.1163 0.0856)
OKLCHoklch(52.35% 0.144 143.7)
XYZxyz(8.7714, 15.5463, 4.8235)
Luminance0.1555 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E2B #7E287B
analogous
#507E28 #287E2B #287E56
triadic
#287E2B #2B287E #7E2B28
tetradic
#287E2B #28507E #7E287B #7E5628
square
#287E2B #28507E #7E287B #7E5628
split-complementary
#287E2B #56287E #7E2850
monochromatic
#0B210B #19501B #287E2B #37AC3B #57CA5B

Accessibility & contrast

On white

5.11
#287E2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#287E2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287E2B
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E2B#FFFFFF#000000##FFFFFF
##287E2B1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817221
Deuteranopia (green-blind)
#766B32
Tritanopia (blue-blind)
#137A6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e2b;
/* rgb */ color: rgb(40, 126, 43);
/* oklch */ color: oklch(52.3% 0.144 143.7);
Tailwind
colors: {
  custom: {
    50: '#6ea468',
    500: '#287e2b',
    950: '#000000',
  },
}
SCSS
$custom: #287e2b;
$custom-light: #6ea468;
$custom-dark: #000000;
JSON
{
  "hex": "#287e2b",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 43
  },
  "hsl": {
    "h": 122.093,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52346,
    "c": 0.14443,
    "h": 143.7
  },
  "luminance": 0.15547
}

Semantic roles & 50–950 ramp

primary
#287E2B
secondary
#AF53AB
accent
#4DD6DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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