#287A2B#287A2B

#287A2B is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.139 H 143.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#287A2B
RGBrgb(40, 122, 43)
HSLhsl(122, 51%, 32%)
HSVhsv(122, 67%, 48%)
CMYKcmyk(67.2%, 0%, 64.8%, 52.2%)
CIE-LABlab(45.00, -41.38, 35.24)
CIE-LCHlch(45.00, 54.35, 139.58°)
OKLaboklab(51.21% -0.1122 0.0823)
OKLCHoklch(51.21% 0.139 143.7)
XYZxyz(8.2702, 14.5438, 4.6564)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A2B #7A2877
analogous
#4E7A28 #287A2B #287A54
triadic
#287A2B #2B287A #7A2B28
tetradic
#287A2B #284E7A #7A2877 #7A5428
square
#287A2B #284E7A #7A2877 #7A5428
split-complementary
#287A2B #54287A #7A284E
monochromatic
#0A1E0B #194C1B #287A2B #37A83B #55C759

Accessibility & contrast

On white

5.37
#287A2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#287A2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287A2B
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287A2B#FFFFFF#000000##FFFFFF
##287A2B1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F22
Deuteranopia (green-blind)
#726832
Tritanopia (blue-blind)
#157769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #287a2b;
/* rgb */ color: rgb(40, 122, 43);
/* oklch */ color: oklch(51.2% 0.139 143.7);
Tailwind
colors: {
  custom: {
    50: '#6da168',
    500: '#287a2b',
    950: '#000000',
  },
}
SCSS
$custom: #287a2b;
$custom-light: #6da168;
$custom-dark: #000000;
JSON
{
  "hex": "#287a2b",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 43
  },
  "hsl": {
    "h": 122.195,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51212,
    "c": 0.13918,
    "h": 143.7
  },
  "luminance": 0.14545
}

Semantic roles & 50–950 ramp

primary
#287A2B
secondary
#AC52A9
accent
#4ED5DA
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #287A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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