#287F17#287F17

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

Color values

HEX#287F17
RGBrgb(40, 127, 23)
HSLhsl(110, 69%, 29%)
HSVhsv(110, 82%, 50%)
CMYKcmyk(68.5%, 0%, 81.9%, 50.2%)
CIE-LABlab(46.57, -45.05, 44.99)
CIE-LCHlch(46.57, 63.67, 135.04°)
OKLaboklab(52.46% -0.1232 0.1001)
OKLCHoklch(52.46% 0.159 140.9)
XYZxyz(8.6187, 15.6908, 3.3849)
Luminance0.1569 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F17 #6E177F
analogous
#5C7F17 #287F17 #177F3A
triadic
#287F17 #17287F #7F1728
tetradic
#287F17 #175C7F #6E177F #7F3A17
square
#287F17 #175C7F #6E177F #7F3A17
split-complementary
#287F17 #3A177F #7F175C
monochromatic
#081A05 #184B0E #287F17 #38B320 #51DB36

Accessibility & contrast

On white

5.07
#287F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#287F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287F17
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287F17#FFFFFF#000000##FFFFFF
##287F171.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#786C23
Tritanopia (blue-blind)
#177B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287f17;
/* rgb */ color: rgb(40, 127, 23);
/* oklch */ color: oklch(52.5% 0.159 140.9);
Tailwind
colors: {
  custom: {
    50: '#6fa55e',
    500: '#287f17',
    950: '#000000',
  },
}
SCSS
$custom: #287f17;
$custom-light: #6fa55e;
$custom-dark: #000000;
JSON
{
  "hex": "#287f17",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 110.192,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52457,
    "c": 0.1588,
    "h": 140.9
  },
  "luminance": 0.15692
}

Semantic roles & 50–950 ramp

primary
#287F17
secondary
#A03EB4
accent
#3CECCF
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287F17

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

Preview Lab → · Contrast checker → · Palette generator →

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