#287D19#287D19

#287D19 is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.155 H 141.0°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#287D19
RGBrgb(40, 125, 25)
HSLhsl(111, 67%, 29%)
HSVhsv(111, 80%, 49%)
CMYKcmyk(68%, 0%, 80%, 51%)
CIE-LABlab(45.89, -44.20, 43.67)
CIE-LCHlch(45.89, 62.13, 135.34°)
OKLaboklab(51.9% -0.1208 0.0977)
OKLCHoklch(51.9% 0.155 141)
XYZxyz(8.3837, 15.1877, 3.4092)
Luminance0.1519 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D19 #6E197D
analogous
#5A7D19 #287D19 #197D3C
triadic
#287D19 #19287D #7D1928
tetradic
#287D19 #195A7D #6E197D #7D3C19
square
#287D19 #195A7D #6E197D #7D3C19
split-complementary
#287D19 #3C197D #7D195A
monochromatic
#081A05 #184A0F #287D19 #38B023 #51D739

Accessibility & contrast

On white

5.20
#287D19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#287D19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D19
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D19#FFFFFF#000000##FFFFFF
##287D191.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807101
Deuteranopia (green-blind)
#766A24
Tritanopia (blue-blind)
#18796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d19;
/* rgb */ color: rgb(40, 125, 25);
/* oklch */ color: oklch(51.9% 0.155 141.0);
Tailwind
colors: {
  custom: {
    50: '#6fa35e',
    500: '#287d19',
    950: '#000000',
  },
}
SCSS
$custom: #287d19;
$custom-light: #6fa35e;
$custom-dark: #000000;
JSON
{
  "hex": "#287d19",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 25
  },
  "hsl": {
    "h": 111,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51901,
    "c": 0.15539,
    "h": 141
  },
  "luminance": 0.15189
}

Semantic roles & 50–950 ramp

primary
#287D19
secondary
#A040B1
accent
#3EEAD0
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287D19

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

Preview Lab → · Contrast checker → · Palette generator →

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