#287B15#287B15

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

Color values

HEX#287B15
RGBrgb(40, 123, 21)
HSLhsl(109, 71%, 28%)
HSVhsv(109, 83%, 48%)
CMYKcmyk(67.5%, 0%, 82.9%, 51.8%)
CIE-LABlab(45.18, -43.74, 44.32)
CIE-LCHlch(45.18, 62.26, 134.62°)
OKLaboklab(51.31% -0.1198 0.0984)
OKLCHoklch(51.31% 0.155 140.6)
XYZxyz(8.0930, 14.6704, 3.1145)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287B15 #68157B
analogous
#5B7B15 #287B15 #157B35
triadic
#287B15 #15287B #7B1528
tetradic
#287B15 #155B7B #68157B #7B3515
square
#287B15 #155B7B #68157B #7B3515
split-complementary
#287B15 #35157B #7B155B
monochromatic
#081A04 #17470C #287B15 #39AF1E #4FDB2F

Accessibility & contrast

On white

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

On black

3.93
#287B15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##287B15#FFFFFF#000000##FFFFFF
##287B151.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#756821
Tritanopia (blue-blind)
#1A7768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287b15;
/* rgb */ color: rgb(40, 123, 21);
/* oklch */ color: oklch(51.3% 0.155 140.6);
Tailwind
colors: {
  custom: {
    50: '#6fa25c',
    500: '#287b15',
    950: '#000000',
  },
}
SCSS
$custom: #287b15;
$custom-light: #6fa25c;
$custom-dark: #000000;
JSON
{
  "hex": "#287b15",
  "rgb": {
    "r": 40,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 108.824,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51305,
    "c": 0.15506,
    "h": 140.6
  },
  "luminance": 0.14671
}

Semantic roles & 50–950 ramp

primary
#287B15
secondary
#9B3BB0
accent
#3AEECC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #287B15

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

Preview Lab → · Contrast checker → · Palette generator →

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