#287A17#287A17

#287A17 is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.153 H 140.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#287A17
RGBrgb(40, 122, 23)
HSLhsl(110, 68%, 28%)
HSVhsv(110, 81%, 48%)
CMYKcmyk(67.2%, 0%, 81.1%, 52.2%)
CIE-LABlab(44.85, -43.24, 43.35)
CIE-LCHlch(44.85, 61.23, 134.93°)
OKLaboklab(51.03% -0.1184 0.0967)
OKLCHoklch(51.03% 0.153 140.8)
XYZxyz(7.9889, 14.4312, 3.1749)
Luminance0.1443 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A17 #69177A
analogous
#597A17 #287A17 #177A37
triadic
#287A17 #17287A #7A1728
tetradic
#287A17 #17597A #69177A #7A3717
square
#287A17 #17597A #69177A #7A3717
split-complementary
#287A17 #37177A #7A1759
monochromatic
#081A05 #17470D #287A17 #39AD21 #4FD933

Accessibility & contrast

On white

5.40
#287A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#287A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287A17
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287A17#FFFFFF#000000##FFFFFF
##287A171.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#1A7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #287a17;
/* rgb */ color: rgb(40, 122, 23);
/* oklch */ color: oklch(51.0% 0.153 140.8);
Tailwind
colors: {
  custom: {
    50: '#6ea15d',
    500: '#287a17',
    950: '#000000',
  },
}
SCSS
$custom: #287a17;
$custom-light: #6ea15d;
$custom-dark: #000000;
JSON
{
  "hex": "#287a17",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 109.697,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51031,
    "c": 0.15285,
    "h": 140.8
  },
  "luminance": 0.14432
}

Semantic roles & 50–950 ramp

primary
#287A17
secondary
#9C3EAF
accent
#3DEBCD
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #287A17

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

Preview Lab → · Contrast checker → · Palette generator →

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