#287F15#287F15

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

Color values

HEX#287F15
RGBrgb(40, 127, 21)
HSLhsl(109, 72%, 29%)
HSVhsv(109, 83%, 50%)
CMYKcmyk(68.5%, 0%, 83.5%, 50.2%)
CIE-LABlab(46.56, -45.17, 45.60)
CIE-LCHlch(46.56, 64.19, 134.73°)
OKLaboklab(52.45% -0.1237 0.1011)
OKLCHoklch(52.45% 0.16 140.7)
XYZxyz(8.5994, 15.6831, 3.2833)
Luminance0.1568 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F15 #6C157F
analogous
#5D7F15 #287F15 #157F37
triadic
#287F15 #15287F #7F1528
tetradic
#287F15 #155D7F #6C157F #7F3715
square
#287F15 #155D7F #6C157F #7F3715
split-complementary
#287F15 #37157F #7F155D
monochromatic
#081A04 #174A0C #287F15 #39B41E #50DD31

Accessibility & contrast

On white

5.08
#287F15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#287F15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287F15
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287F15#FFFFFF#000000##FFFFFF
##287F151.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#786C22
Tritanopia (blue-blind)
#187B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287f15;
/* rgb */ color: rgb(40, 127, 21);
/* oklch */ color: oklch(52.4% 0.160 140.7);
Tailwind
colors: {
  custom: {
    50: '#6fa55d',
    500: '#287f15',
    950: '#000000',
  },
}
SCSS
$custom: #287f15;
$custom-light: #6fa55d;
$custom-dark: #000000;
JSON
{
  "hex": "#287f15",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 109.245,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52446,
    "c": 0.15976,
    "h": 140.7
  },
  "luminance": 0.15684
}

Semantic roles & 50–950 ramp

primary
#287F15
secondary
#9E3CB4
accent
#39EECE
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287F15

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

Preview Lab → · Contrast checker → · Palette generator →

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