#287D1E#287D1E

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

Color values

HEX#287D1E
RGBrgb(40, 125, 30)
HSLhsl(114, 61%, 30%)
HSVhsv(114, 76%, 49%)
CMYKcmyk(68%, 0%, 76%, 51%)
CIE-LABlab(45.92, -43.81, 41.87)
CIE-LCHlch(45.92, 60.60, 136.30°)
OKLaboklab(51.94% -0.1195 0.0947)
OKLCHoklch(51.94% 0.152 141.6)
XYZxyz(8.4426, 15.2112, 3.7192)
Luminance0.1521 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D1E #731E7D
analogous
#577D1E #287D1E #1E7D43
triadic
#287D1E #1E287D #7D1E28
tetradic
#287D1E #1E577D #731E7D #7D431E
square
#287D1E #1E577D #731E7D #7D431E
split-complementary
#287D1E #431E7D #7D1E57
monochromatic
#081A06 #184C12 #287D1E #38AE2A #52D243

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287D1E#FFFFFF#000000##FFFFFF
##287D1E1.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)
#80710C
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#17796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d1e;
/* rgb */ color: rgb(40, 125, 30);
/* oklch */ color: oklch(51.9% 0.152 141.6);
Tailwind
colors: {
  custom: {
    50: '#6fa361',
    500: '#287d1e',
    950: '#000000',
  },
}
SCSS
$custom: #287d1e;
$custom-light: #6fa361;
$custom-dark: #000000;
JSON
{
  "hex": "#287d1e",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 30
  },
  "hsl": {
    "h": 113.684,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51937,
    "c": 0.15247,
    "h": 141.6
  },
  "luminance": 0.15212
}

Semantic roles & 50–950 ramp

primary
#287D1E
secondary
#A546B0
accent
#43E4D3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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