#287B17#287B17

#287B17 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.3% C 0.154 H 140.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#287B17
RGBrgb(40, 123, 23)
HSLhsl(110, 68%, 29%)
HSVhsv(110, 81%, 48%)
CMYKcmyk(67.5%, 0%, 81.3%, 51.8%)
CIE-LABlab(45.19, -43.61, 43.68)
CIE-LCHlch(45.19, 61.72, 134.95°)
OKLaboklab(51.32% -0.1193 0.0974)
OKLCHoklch(51.32% 0.154 140.8)
XYZxyz(8.1123, 14.6781, 3.2161)
Luminance0.1468 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287B17 #6A177B
analogous
#5A7B17 #287B17 #177B38
triadic
#287B17 #17287B #7B1728
tetradic
#287B17 #175A7B #6A177B #7B3817
square
#287B17 #175A7B #6A177B #7B3817
split-complementary
#287B17 #38177B #7B175A
monochromatic
#081A05 #17470D #287B17 #39AF21 #50D933

Accessibility & contrast

On white

5.34
#287B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#287B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287B17
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287B17#FFFFFF#000000##FFFFFF
##287B171.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#756823
Tritanopia (blue-blind)
#197768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287b17;
/* rgb */ color: rgb(40, 123, 23);
/* oklch */ color: oklch(51.3% 0.154 140.8);
Tailwind
colors: {
  custom: {
    50: '#6ea25d',
    500: '#287b17',
    950: '#000000',
  },
}
SCSS
$custom: #287b17;
$custom-light: #6ea25d;
$custom-dark: #000000;
JSON
{
  "hex": "#287b17",
  "rgb": {
    "r": 40,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 109.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51317,
    "c": 0.15405,
    "h": 140.8
  },
  "luminance": 0.14679
}

Semantic roles & 50–950 ramp

primary
#287B17
secondary
#9D3EB0
accent
#3CEBCE
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287B17

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

Preview Lab → · Contrast checker → · Palette generator →

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