#287E2A#287E2A

#287E2A is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.145 H 143.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#287E2A
RGBrgb(40, 126, 42)
HSLhsl(121, 52%, 33%)
HSVhsv(121, 68%, 49%)
CMYKcmyk(68.3%, 0%, 66.7%, 50.6%)
CIE-LABlab(46.36, -43.01, 37.23)
CIE-LCHlch(46.36, 56.89, 139.13°)
OKLaboklab(52.34% -0.1167 0.0864)
OKLCHoklch(52.34% 0.145 143.5)
XYZxyz(8.7533, 15.5391, 4.7281)
Luminance0.1554 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E2A #7E287C
analogous
#517E28 #287E2A #287E55
triadic
#287E2A #2A287E #7E2A28
tetradic
#287E2A #28517E #7E287C #7E5528
square
#287E2A #28517E #7E287C #7E5528
split-complementary
#287E2A #55287E #7E2851
monochromatic
#0B210B #19501B #287E2A #37AC39 #57CA59

Accessibility & contrast

On white

5.11
#287E2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#287E2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287E2A
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E2A#FFFFFF#000000##FFFFFF
##287E2A1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817220
Deuteranopia (green-blind)
#766B31
Tritanopia (blue-blind)
#137A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e2a;
/* rgb */ color: rgb(40, 126, 42);
/* oklch */ color: oklch(52.3% 0.145 143.5);
Tailwind
colors: {
  custom: {
    50: '#6ea467',
    500: '#287e2a',
    950: '#000000',
  },
}
SCSS
$custom: #287e2a;
$custom-light: #6ea467;
$custom-dark: #000000;
JSON
{
  "hex": "#287e2a",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 121.395,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52335,
    "c": 0.14523,
    "h": 143.5
  },
  "luminance": 0.1554
}

Semantic roles & 50–950 ramp

primary
#287E2A
secondary
#AF53AD
accent
#4DD8DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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