#287F1D#287F1D

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

Color values

HEX#287F1D
RGBrgb(40, 127, 29)
HSLhsl(113, 63%, 31%)
HSVhsv(113, 77%, 50%)
CMYKcmyk(68.5%, 0%, 77.2%, 50.2%)
CIE-LABlab(46.60, -44.62, 42.93)
CIE-LCHlch(46.60, 61.92, 136.11°)
OKLaboklab(52.5% -0.1218 0.0967)
OKLCHoklch(52.5% 0.156 141.5)
XYZxyz(8.6858, 15.7177, 3.7382)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F1D #741D7F
analogous
#597F1D #287F1D #1D7F43
triadic
#287F1D #1D287F #7F1D28
tetradic
#287F1D #1D597F #741D7F #7F431D
square
#287F1D #1D597F #741D7F #7F431D
split-complementary
#287F1D #431D7F #7F1D59
monochromatic
#091B06 #184D12 #287F1D #38B128 #53D442

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287F1D#FFFFFF#000000##FFFFFF
##287F1D1.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)
#827309
Deuteranopia (green-blind)
#786C28
Tritanopia (blue-blind)
#167B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287f1d;
/* rgb */ color: rgb(40, 127, 29);
/* oklch */ color: oklch(52.5% 0.156 141.5);
Tailwind
colors: {
  custom: {
    50: '#6fa560',
    500: '#287f1d',
    950: '#000000',
  },
}
SCSS
$custom: #287f1d;
$custom-light: #6fa560;
$custom-dark: #000000;
JSON
{
  "hex": "#287f1d",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 113.265,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52498,
    "c": 0.15551,
    "h": 141.5
  },
  "luminance": 0.15719
}

Semantic roles & 50–950 ramp

primary
#287F1D
secondary
#A645B2
accent
#42E6D3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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