#287D15#287D15

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

Color values

HEX#287D15
RGBrgb(40, 125, 21)
HSLhsl(109, 71%, 29%)
HSVhsv(109, 83%, 49%)
CMYKcmyk(68%, 0%, 83.2%, 51%)
CIE-LABlab(45.87, -44.46, 44.96)
CIE-LCHlch(45.87, 63.23, 134.68°)
OKLaboklab(51.88% -0.1217 0.0998)
OKLCHoklch(51.88% 0.157 140.7)
XYZxyz(8.3436, 15.1716, 3.1980)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D15 #6A157D
analogous
#5C7D15 #287D15 #157D36
triadic
#287D15 #15287D #7D1528
tetradic
#287D15 #155C7D #6A157D #7D3615
square
#287D15 #155C7D #6A157D #7D3615
split-complementary
#287D15 #36157D #7D155C
monochromatic
#081A04 #17490C #287D15 #39B11E #50DC30

Accessibility & contrast

On white

5.21
#287D15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#287D15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D15
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D15#FFFFFF#000000##FFFFFF
##287D151.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807100
Deuteranopia (green-blind)
#766A22
Tritanopia (blue-blind)
#19796A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d15;
/* rgb */ color: rgb(40, 125, 21);
/* oklch */ color: oklch(51.9% 0.157 140.7);
Tailwind
colors: {
  custom: {
    50: '#6fa35c',
    500: '#287d15',
    950: '#000000',
  },
}
SCSS
$custom: #287d15;
$custom-light: #6fa35c;
$custom-dark: #000000;
JSON
{
  "hex": "#287d15",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 21
  },
  "hsl": {
    "h": 109.038,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51876,
    "c": 0.15742,
    "h": 140.7
  },
  "luminance": 0.15172
}

Semantic roles & 50–950 ramp

primary
#287D15
secondary
#9D3CB2
accent
#3AEECD
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #287D15

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

Preview Lab → · Contrast checker → · Palette generator →

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