#287D1D#287D1D

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

Color values

HEX#287D1D
RGBrgb(40, 125, 29)
HSLhsl(113, 62%, 30%)
HSVhsv(113, 77%, 49%)
CMYKcmyk(68%, 0%, 76.8%, 51%)
CIE-LABlab(45.92, -43.90, 42.25)
CIE-LCHlch(45.92, 60.92, 136.10°)
OKLaboklab(51.93% -0.1198 0.0953)
OKLCHoklch(51.93% 0.153 141.5)
XYZxyz(8.4300, 15.2062, 3.6530)
Luminance0.1521 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D1D #721D7D
analogous
#587D1D #287D1D #1D7D42
triadic
#287D1D #1D287D #7D1D28
tetradic
#287D1D #1D587D #721D7D #7D421D
square
#287D1D #1D587D #721D7D #7D421D
split-complementary
#287D1D #421D7D #7D1D58
monochromatic
#081A06 #184B11 #287D1D #38AF29 #52D341

Accessibility & contrast

On white

5.20
#287D1D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #287D1D
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D1D#FFFFFF#000000##FFFFFF
##287D1D1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #287d1d;
/* rgb */ color: rgb(40, 125, 29);
/* oklch */ color: oklch(51.9% 0.153 141.5);
Tailwind
colors: {
  custom: {
    50: '#6fa360',
    500: '#287d1d',
    950: '#000000',
  },
}
SCSS
$custom: #287d1d;
$custom-light: #6fa360;
$custom-dark: #000000;
JSON
{
  "hex": "#287d1d",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 113.125,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5193,
    "c": 0.15309,
    "h": 141.5
  },
  "luminance": 0.15207
}

Semantic roles & 50–950 ramp

primary
#287D1D
secondary
#A445B1
accent
#42E5D3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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