#287217#287217

#287217 is a mid, vivid green. Relative luminance 0.125; OKLCH L 48.7% C 0.143 H 140.5°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#287217
RGBrgb(40, 114, 23)
HSLhsl(109, 66%, 27%)
HSVhsv(109, 80%, 45%)
CMYKcmyk(64.9%, 0%, 79.8%, 55.3%)
CIE-LABlab(42.07, -40.26, 40.67)
CIE-LCHlch(42.07, 57.23, 134.71°)
OKLaboklab(48.74% -0.1103 0.0911)
OKLCHoklch(48.74% 0.143 140.5)
XYZxyz(7.0467, 12.5469, 2.8609)
Luminance0.1255 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287217 #611772
analogous
#567217 #287217 #177234
triadic
#287217 #172872 #721728
tetradic
#287217 #175672 #611772 #723417
square
#287217 #175672 #611772 #723417
split-complementary
#287217 #341772 #721756
monochromatic
#091905 #163F0D #287217 #3AA521 #4ED52E

Accessibility & contrast

On white

5.98
#287217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#287217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287217
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287217#FFFFFF#000000##FFFFFF
##2872171.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756703
Deuteranopia (green-blind)
#6C6121
Tritanopia (blue-blind)
#1D6E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #287217;
/* rgb */ color: rgb(40, 114, 23);
/* oklch */ color: oklch(48.7% 0.143 140.5);
Tailwind
colors: {
  custom: {
    50: '#6d9b5c',
    500: '#287217',
    950: '#000000',
  },
}
SCSS
$custom: #287217;
$custom-light: #6d9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#287217",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 108.791,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48735,
    "c": 0.14311,
    "h": 140.5
  },
  "luminance": 0.12548
}

Semantic roles & 50–950 ramp

primary
#287217
secondary
#943DA8
accent
#3EE9C9
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #287217

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

Preview Lab → · Contrast checker → · Palette generator →

#287217 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva