#287F1B#287F1B

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

Color values

HEX#287F1B
RGBrgb(40, 127, 27)
HSLhsl(112, 65%, 30%)
HSVhsv(112, 79%, 50%)
CMYKcmyk(68.5%, 0%, 78.7%, 50.2%)
CIE-LABlab(46.59, -44.78, 43.65)
CIE-LCHlch(46.59, 62.53, 135.73°)
OKLaboklab(52.48% -0.1223 0.0979)
OKLCHoklch(52.48% 0.157 141.3)
XYZxyz(8.6618, 15.7081, 3.6122)
Luminance0.1571 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F1B #721B7F
analogous
#5A7F1B #287F1B #1B7F40
triadic
#287F1B #1B287F #7F1B28
tetradic
#287F1B #1B5A7F #721B7F #7F401B
square
#287F1B #1B5A7F #721B7F #7F401B
split-complementary
#287F1B #401B7F #7F1B5A
monochromatic
#081A06 #184D10 #287F1B #38B126 #52D63E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287F1B#FFFFFF#000000##FFFFFF
##287F1B1.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)
#827304
Deuteranopia (green-blind)
#786C26
Tritanopia (blue-blind)
#177B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287f1b;
/* rgb */ color: rgb(40, 127, 27);
/* oklch */ color: oklch(52.5% 0.157 141.3);
Tailwind
colors: {
  custom: {
    50: '#6fa55f',
    500: '#287f1b',
    950: '#000000',
  },
}
SCSS
$custom: #287f1b;
$custom-light: #6fa55f;
$custom-dark: #000000;
JSON
{
  "hex": "#287f1b",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 112.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52484,
    "c": 0.15668,
    "h": 141.3
  },
  "luminance": 0.15709
}

Semantic roles & 50–950 ramp

primary
#287F1B
secondary
#A443B3
accent
#40E8D2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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