#287B1F#287B1F

#287B1F is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.149 H 141.7°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#287B1F
RGBrgb(40, 123, 31)
HSLhsl(114, 60%, 30%)
HSVhsv(114, 75%, 48%)
CMYKcmyk(67.5%, 0%, 74.8%, 51.8%)
CIE-LABlab(45.24, -42.99, 40.78)
CIE-LCHlch(45.24, 59.26, 136.51°)
OKLaboklab(51.38% -0.1173 0.0925)
OKLCHoklch(51.38% 0.149 141.7)
XYZxyz(8.2049, 14.7151, 3.7040)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287B1F #721F7B
analogous
#567B1F #287B1F #1F7B44
triadic
#287B1F #1F287B #7B1F28
tetradic
#287B1F #1F567B #721F7B #7B441F
square
#287B1F #1F567B #721F7B #7B441F
split-complementary
#287B1F #441F7B #7B1F56
monochromatic
#081906 #184A13 #287B1F #38AC2B #52D044

Accessibility & contrast

On white

5.33
#287B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#287B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287B1F
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287B1F#FFFFFF#000000##FFFFFF
##287B1F1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#746828
Tritanopia (blue-blind)
#187769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287b1f;
/* rgb */ color: rgb(40, 123, 31);
/* oklch */ color: oklch(51.4% 0.149 141.7);
Tailwind
colors: {
  custom: {
    50: '#6ea261',
    500: '#287b1f',
    950: '#000000',
  },
}
SCSS
$custom: #287b1f;
$custom-light: #6ea261;
$custom-dark: #000000;
JSON
{
  "hex": "#287b1f",
  "rgb": {
    "r": 40,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 114.13,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51376,
    "c": 0.14937,
    "h": 141.7
  },
  "luminance": 0.14716
}

Semantic roles & 50–950 ramp

primary
#287B1F
secondary
#A448AE
accent
#45E3D3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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