#287D1F#287D1F

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

Color values

HEX#287D1F
RGBrgb(40, 125, 31)
HSLhsl(114, 60%, 31%)
HSVhsv(114, 75%, 49%)
CMYKcmyk(68%, 0%, 75.2%, 51%)
CIE-LABlab(45.93, -43.73, 41.49)
CIE-LCHlch(45.93, 60.28, 136.51°)
OKLaboklab(51.94% -0.1192 0.094)
OKLCHoklch(51.94% 0.152 141.8)
XYZxyz(8.4556, 15.2164, 3.7875)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D1F #741F7D
analogous
#577D1F #287D1F #1F7D45
triadic
#287D1F #1F287D #7D1F28
tetradic
#287D1F #1F577D #741F7D #7D451F
square
#287D1F #1F577D #741F7D #7D451F
split-complementary
#287D1F #451F7D #7D1F57
monochromatic
#091B07 #184C13 #287D1F #38AE2B #53D145

Accessibility & contrast

On white

5.19
#287D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #287D1F
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D1F#FFFFFF#000000##FFFFFF
##287D1F1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#17796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d1f;
/* rgb */ color: rgb(40, 125, 31);
/* oklch */ color: oklch(51.9% 0.152 141.8);
Tailwind
colors: {
  custom: {
    50: '#6fa361',
    500: '#287d1f',
    950: '#000000',
  },
}
SCSS
$custom: #287d1f;
$custom-light: #6fa361;
$custom-dark: #000000;
JSON
{
  "hex": "#287d1f",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 114.255,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51945,
    "c": 0.15184,
    "h": 141.8
  },
  "luminance": 0.15217
}

Semantic roles & 50–950 ramp

primary
#287D1F
secondary
#A648B0
accent
#44E3D4
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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