#287E20#287E20

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

Color values

HEX#287E20
RGBrgb(40, 126, 32)
HSLhsl(115, 59%, 31%)
HSVhsv(115, 75%, 49%)
CMYKcmyk(68.3%, 0%, 74.6%, 50.6%)
CIE-LABlab(46.28, -44.01, 41.45)
CIE-LCHlch(46.28, 60.46, 136.72°)
OKLaboklab(52.24% -0.1199 0.0941)
OKLCHoklch(52.24% 0.152 141.9)
XYZxyz(8.5962, 15.4762, 3.9004)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E20 #76207E
analogous
#577E20 #287E20 #207E47
triadic
#287E20 #20287E #7E2028
tetradic
#287E20 #20577E #76207E #7E4720
square
#287E20 #20577E #76207E #7E4720
split-complementary
#287E20 #47207E #7E2057
monochromatic
#091C07 #194D14 #287E20 #37AF2C #54D048

Accessibility & contrast

On white

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

On black

4.10
#287E20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##287E20#FFFFFF#000000##FFFFFF
##287E201.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817210
Deuteranopia (green-blind)
#776B2A
Tritanopia (blue-blind)
#167A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e20;
/* rgb */ color: rgb(40, 126, 32);
/* oklch */ color: oklch(52.2% 0.152 141.9);
Tailwind
colors: {
  custom: {
    50: '#6fa462',
    500: '#287e20',
    950: '#000000',
  },
}
SCSS
$custom: #287e20;
$custom-light: #6fa462;
$custom-dark: #000000;
JSON
{
  "hex": "#287e20",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 114.894,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52238,
    "c": 0.15243,
    "h": 141.9
  },
  "luminance": 0.15477
}

Semantic roles & 50–950 ramp

primary
#287E20
secondary
#A849B1
accent
#45E3D5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #287E20

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

Preview Lab → · Contrast checker → · Palette generator →

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