#287A1F#287A1F

#287A1F is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.148 H 141.7°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#287A1F
RGBrgb(40, 122, 31)
HSLhsl(114, 59%, 30%)
HSVhsv(114, 75%, 48%)
CMYKcmyk(67.2%, 0%, 74.6%, 52.2%)
CIE-LABlab(44.90, -42.62, 40.43)
CIE-LCHlch(44.90, 58.75, 136.51°)
OKLaboklab(51.09% -0.1162 0.0918)
OKLCHoklch(51.09% 0.148 141.7)
XYZxyz(8.0815, 14.4683, 3.6628)
Luminance0.1447 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A1F #711F7A
analogous
#557A1F #287A1F #1F7A44
triadic
#287A1F #1F287A #7A1F28
tetradic
#287A1F #1F557A #711F7A #7A441F
square
#287A1F #1F557A #711F7A #7A441F
split-complementary
#287A1F #441F7A #7A1F55
monochromatic
#081806 #184913 #287A1F #38AB2B #52CF44

Accessibility & contrast

On white

5.39
#287A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#287A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287A1F
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287A1F#FFFFFF#000000##FFFFFF
##287A1F1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E0F
Deuteranopia (green-blind)
#736828
Tritanopia (blue-blind)
#187668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #287a1f;
/* rgb */ color: rgb(40, 122, 31);
/* oklch */ color: oklch(51.1% 0.148 141.7);
Tailwind
colors: {
  custom: {
    50: '#6ea161',
    500: '#287a1f',
    950: '#000000',
  },
}
SCSS
$custom: #287a1f;
$custom-light: #6ea161;
$custom-dark: #000000;
JSON
{
  "hex": "#287a1f",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 114.066,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51091,
    "c": 0.14813,
    "h": 141.7
  },
  "luminance": 0.14469
}

Semantic roles & 50–950 ramp

primary
#287A1F
secondary
#A347AD
accent
#45E3D3
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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