#287C1B#287C1B

#287C1B is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.153 H 141.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#287C1B
RGBrgb(40, 124, 27)
HSLhsl(112, 64%, 30%)
HSVhsv(112, 78%, 49%)
CMYKcmyk(67.7%, 0%, 78.2%, 51.4%)
CIE-LABlab(45.56, -43.69, 42.63)
CIE-LCHlch(45.56, 61.04, 135.70°)
OKLaboklab(51.63% -0.1193 0.0958)
OKLCHoklch(51.63% 0.153 141.2)
XYZxyz(8.2801, 14.9447, 3.4850)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287C1B #6F1B7C
analogous
#597C1B #287C1B #1B7C3F
triadic
#287C1B #1B287C #7C1B28
tetradic
#287C1B #1B597C #6F1B7C #7C3F1B
square
#287C1B #1B597C #6F1B7C #7C3F1B
split-complementary
#287C1B #3F1B7C #7C1B59
monochromatic
#081905 #184A10 #287C1B #38AE26 #51D53D

Accessibility & contrast

On white

5.26
#287C1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#287C1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287C1B
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287C1B#FFFFFF#000000##FFFFFF
##287C1B1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7006
Deuteranopia (green-blind)
#756926
Tritanopia (blue-blind)
#18786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #287c1b;
/* rgb */ color: rgb(40, 124, 27);
/* oklch */ color: oklch(51.6% 0.153 141.2);
Tailwind
colors: {
  custom: {
    50: '#6fa35f',
    500: '#287c1b',
    950: '#000000',
  },
}
SCSS
$custom: #287c1b;
$custom-light: #6fa35f;
$custom-dark: #000000;
JSON
{
  "hex": "#287c1b",
  "rgb": {
    "r": 40,
    "g": 124,
    "b": 27
  },
  "hsl": {
    "h": 111.959,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5163,
    "c": 0.15306,
    "h": 141.2
  },
  "luminance": 0.14946
}

Semantic roles & 50–950 ramp

primary
#287C1B
secondary
#A143B0
accent
#41E7D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287C1B

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

Preview Lab → · Contrast checker → · Palette generator →

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