#287E1A#287E1A

#287E1A is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.156 H 141.2°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#287E1A
RGBrgb(40, 126, 26)
HSLhsl(112, 66%, 30%)
HSVhsv(112, 79%, 49%)
CMYKcmyk(68.3%, 0%, 79.4%, 50.6%)
CIE-LABlab(46.24, -44.49, 43.66)
CIE-LCHlch(46.24, 62.33, 135.54°)
OKLaboklab(52.19% -0.1216 0.0978)
OKLCHoklch(52.19% 0.156 141.2)
XYZxyz(8.5219, 15.4465, 3.5095)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E1A #701A7E
analogous
#5A7E1A #287E1A #1A7E3E
triadic
#287E1A #1A287E #7E1A28
tetradic
#287E1A #1A5A7E #701A7E #7E3E1A
square
#287E1A #1A5A7E #701A7E #7E3E1A
split-complementary
#287E1A #3E1A7E #7E1A5A
monochromatic
#081905 #184B10 #287E1A #38B124 #51D73C

Accessibility & contrast

On white

5.14
#287E1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #287E1A
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E1A#FFFFFF#000000##FFFFFF
##287E1A1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817202
Deuteranopia (green-blind)
#776B25
Tritanopia (blue-blind)
#177A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e1a;
/* rgb */ color: rgb(40, 126, 26);
/* oklch */ color: oklch(52.2% 0.156 141.2);
Tailwind
colors: {
  custom: {
    50: '#6fa45f',
    500: '#287e1a',
    950: '#000000',
  },
}
SCSS
$custom: #287e1a;
$custom-light: #6fa45f;
$custom-dark: #000000;
JSON
{
  "hex": "#287e1a",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 26
  },
  "hsl": {
    "h": 111.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52192,
    "c": 0.15604,
    "h": 141.2
  },
  "luminance": 0.15447
}

Semantic roles & 50–950 ramp

primary
#287E1A
secondary
#A242B2
accent
#3FE9D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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