#287F1E#287F1E

#287F1E is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.155 H 141.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#287F1E
RGBrgb(40, 127, 30)
HSLhsl(114, 62%, 31%)
HSVhsv(114, 76%, 50%)
CMYKcmyk(68.5%, 0%, 76.4%, 50.2%)
CIE-LABlab(46.61, -44.54, 42.56)
CIE-LCHlch(46.61, 61.61, 136.30°)
OKLaboklab(52.51% -0.1215 0.0961)
OKLCHoklch(52.51% 0.155 141.7)
XYZxyz(8.6983, 15.7227, 3.8044)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F1E #751E7F
analogous
#587F1E #287F1E #1E7F44
triadic
#287F1E #1E287F #7F1E28
tetradic
#287F1E #1E587F #751E7F #7F441E
square
#287F1E #1E587F #751E7F #7F441E
split-complementary
#287F1E #441E7F #7F1E58
monochromatic
#091C07 #184D12 #287F1E #38B12A #53D344

Accessibility & contrast

On white

5.07
#287F1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #287F1E
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287F1E#FFFFFF#000000##FFFFFF
##287F1E1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730B
Deuteranopia (green-blind)
#786C28
Tritanopia (blue-blind)
#167B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287f1e;
/* rgb */ color: rgb(40, 127, 30);
/* oklch */ color: oklch(52.5% 0.155 141.7);
Tailwind
colors: {
  custom: {
    50: '#6fa561',
    500: '#287f1e',
    950: '#000000',
  },
}
SCSS
$custom: #287f1e;
$custom-light: #6fa561;
$custom-dark: #000000;
JSON
{
  "hex": "#287f1e",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 113.814,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52506,
    "c": 0.15491,
    "h": 141.7
  },
  "luminance": 0.15724
}

Semantic roles & 50–950 ramp

primary
#287F1E
secondary
#A747B2
accent
#43E5D4
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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