#287215#287215

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

Color values

HEX#287215
RGBrgb(40, 114, 21)
HSLhsl(108, 69%, 26%)
HSVhsv(108, 82%, 45%)
CMYKcmyk(64.9%, 0%, 81.6%, 55.3%)
CIE-LABlab(42.06, -40.40, 41.36)
CIE-LCHlch(42.06, 57.82, 134.33°)
OKLaboklab(48.72% -0.1108 0.0923)
OKLCHoklch(48.72% 0.144 140.2)
XYZxyz(7.0274, 12.5392, 2.7593)
Luminance0.1254 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287215 #5F1572
analogous
#577215 #287215 #157231
triadic
#287215 #152872 #721528
tetradic
#287215 #155772 #5F1572 #723115
square
#287215 #155772 #5F1572 #723115
split-complementary
#287215 #311572 #721557
monochromatic
#091A05 #163E0B #287215 #3AA61F #4DD82A

Accessibility & contrast

On white

5.99
#287215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #287215
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287215#FFFFFF#000000##FFFFFF
##2872151.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #287215;
/* rgb */ color: rgb(40, 114, 21);
/* oklch */ color: oklch(48.7% 0.144 140.2);
Tailwind
colors: {
  custom: {
    50: '#6d9b5b',
    500: '#287215',
    950: '#000000',
  },
}
SCSS
$custom: #287215;
$custom-light: #6d9b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#287215",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 107.742,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48722,
    "c": 0.14421,
    "h": 140.2
  },
  "luminance": 0.1254
}

Semantic roles & 50–950 ramp

primary
#287215
secondary
#923BA8
accent
#3CECC8
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #287215

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

Preview Lab → · Contrast checker → · Palette generator →

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