#287D17#287D17

#287D17 is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.156 H 140.8°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#287D17
RGBrgb(40, 125, 23)
HSLhsl(110, 69%, 29%)
HSVhsv(110, 82%, 49%)
CMYKcmyk(68%, 0%, 81.6%, 51%)
CIE-LABlab(45.88, -44.33, 44.33)
CIE-LCHlch(45.88, 62.70, 135.00°)
OKLaboklab(51.89% -0.1213 0.0988)
OKLCHoklch(51.89% 0.156 140.8)
XYZxyz(8.3629, 15.1794, 3.2996)
Luminance0.1518 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D17 #6C177D
analogous
#5B7D17 #287D17 #177D39
triadic
#287D17 #17287D #7D1728
tetradic
#287D17 #175B7D #6C177D #7D3917
square
#287D17 #175B7D #6C177D #7D3917
split-complementary
#287D17 #39177D #7D175B
monochromatic
#081A05 #17490D #287D17 #39B121 #50DA35

Accessibility & contrast

On white

5.20
#287D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #287D17
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D17#FFFFFF#000000##FFFFFF
##287D171.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#18796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d17;
/* rgb */ color: rgb(40, 125, 23);
/* oklch */ color: oklch(51.9% 0.156 140.8);
Tailwind
colors: {
  custom: {
    50: '#6fa35d',
    500: '#287d17',
    950: '#000000',
  },
}
SCSS
$custom: #287d17;
$custom-light: #6fa35d;
$custom-dark: #000000;
JSON
{
  "hex": "#287d17",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 110,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51888,
    "c": 0.15643,
    "h": 140.8
  },
  "luminance": 0.1518
}

Semantic roles & 50–950 ramp

primary
#287D17
secondary
#9E3EB2
accent
#3CECCE
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287D17

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

Preview Lab → · Contrast checker → · Palette generator →

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