#287E1F#287E1F

#287E1F is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.153 H 141.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#287E1F
RGBrgb(40, 126, 31)
HSLhsl(114, 61%, 31%)
HSVhsv(114, 75%, 49%)
CMYKcmyk(68.3%, 0%, 75.4%, 50.6%)
CIE-LABlab(46.27, -44.10, 41.84)
CIE-LCHlch(46.27, 60.78, 136.51°)
OKLaboklab(52.23% -0.1202 0.0947)
OKLCHoklch(52.23% 0.153 141.8)
XYZxyz(8.5828, 15.4709, 3.8299)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E1F #751F7E
analogous
#577E1F #287E1F #1F7E45
triadic
#287E1F #1F287E #7E1F28
tetradic
#287E1F #1F577E #751F7E #7E451F
square
#287E1F #1F577E #751F7E #7E451F
split-complementary
#287E1F #451F7E #7E1F57
monochromatic
#091C07 #184D13 #287E1F #38AF2B #53D146

Accessibility & contrast

On white

5.13
#287E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#287E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287E1F
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E1F#FFFFFF#000000##FFFFFF
##287E1F1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#167A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e1f;
/* rgb */ color: rgb(40, 126, 31);
/* oklch */ color: oklch(52.2% 0.153 141.8);
Tailwind
colors: {
  custom: {
    50: '#6fa461',
    500: '#287e1f',
    950: '#000000',
  },
}
SCSS
$custom: #287e1f;
$custom-light: #6fa461;
$custom-dark: #000000;
JSON
{
  "hex": "#287e1f",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 114.316,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.5223,
    "c": 0.15307,
    "h": 141.8
  },
  "luminance": 0.15472
}

Semantic roles & 50–950 ramp

primary
#287E1F
secondary
#A748B1
accent
#44E4D5
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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