#287D20#287D20

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

Color values

HEX#287D20
RGBrgb(40, 125, 32)
HSLhsl(115, 59%, 31%)
HSVhsv(115, 74%, 49%)
CMYKcmyk(68%, 0%, 74.4%, 51%)
CIE-LABlab(45.94, -43.65, 41.10)
CIE-LCHlch(45.94, 59.95, 136.72°)
OKLaboklab(51.95% -0.119 0.0933)
OKLCHoklch(51.95% 0.151 141.9)
XYZxyz(8.4689, 15.2218, 3.8580)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D20 #75207D
analogous
#567D20 #287D20 #207D46
triadic
#287D20 #20287D #7D2028
tetradic
#287D20 #20567D #75207D #7D4620
square
#287D20 #20567D #75207D #7D4620
split-complementary
#287D20 #46207D #7D2056
monochromatic
#091C07 #184C14 #287D20 #38AE2C #53D047

Accessibility & contrast

On white

5.19
#287D20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#287D20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D20
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D20#FFFFFF#000000##FFFFFF
##287D201.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807110
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#17796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d20;
/* rgb */ color: rgb(40, 125, 32);
/* oklch */ color: oklch(52.0% 0.151 141.9);
Tailwind
colors: {
  custom: {
    50: '#6ea362',
    500: '#287d20',
    950: '#000000',
  },
}
SCSS
$custom: #287d20;
$custom-light: #6ea362;
$custom-dark: #000000;
JSON
{
  "hex": "#287d20",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 32
  },
  "hsl": {
    "h": 114.839,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51954,
    "c": 0.1512,
    "h": 141.9
  },
  "luminance": 0.15223
}

Semantic roles & 50–950 ramp

primary
#287D20
secondary
#A749B0
accent
#45E2D5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #287D20

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

Preview Lab → · Contrast checker → · Palette generator →

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