#287F20#287F20

#287F20 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.154 H 141.9°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#287F20
RGBrgb(40, 127, 32)
HSLhsl(115, 60%, 31%)
HSVhsv(115, 75%, 50%)
CMYKcmyk(68.5%, 0%, 74.8%, 50.2%)
CIE-LABlab(46.62, -44.38, 41.80)
CIE-LCHlch(46.62, 60.96, 136.71°)
OKLaboklab(52.52% -0.1209 0.0948)
OKLCHoklch(52.52% 0.154 141.9)
XYZxyz(8.7247, 15.7332, 3.9432)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F20 #77207F
analogous
#577F20 #287F20 #207F47
triadic
#287F20 #20287F #7F2028
tetradic
#287F20 #20577F #77207F #7F4720
square
#287F20 #20577F #77207F #7F4720
split-complementary
#287F20 #47207F #7F2057
monochromatic
#091D07 #194E14 #287F20 #37B02C #54D148

Accessibility & contrast

On white

5.06
#287F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#287F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287F20
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287F20#FFFFFF#000000##FFFFFF
##287F201.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730F
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#167B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287f20;
/* rgb */ color: rgb(40, 127, 32);
/* oklch */ color: oklch(52.5% 0.154 141.9);
Tailwind
colors: {
  custom: {
    50: '#6fa562',
    500: '#287f20',
    950: '#000000',
  },
}
SCSS
$custom: #287f20;
$custom-light: #6fa562;
$custom-dark: #000000;
JSON
{
  "hex": "#287f20",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 114.947,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52522,
    "c": 0.15366,
    "h": 141.9
  },
  "luminance": 0.15734
}

Semantic roles & 50–950 ramp

primary
#287F20
secondary
#A949B2
accent
#45E3D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #287F20

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

Preview Lab → · Contrast checker → · Palette generator →

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