#287D2B#287D2B

#287D2B is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.143 H 143.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#287D2B
RGBrgb(40, 125, 43)
HSLhsl(122, 52%, 32%)
HSVhsv(122, 68%, 49%)
CMYKcmyk(68%, 0%, 65.6%, 51%)
CIE-LABlab(46.03, -42.52, 36.39)
CIE-LCHlch(46.03, 55.97, 139.44°)
OKLaboklab(52.06% -0.1153 0.0848)
OKLCHoklch(52.06% 0.143 143.7)
XYZxyz(8.6442, 15.2919, 4.7811)
Luminance0.1529 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D2B #7D287A
analogous
#4F7D28 #287D2B #287D56
triadic
#287D2B #2B287D #7D2B28
tetradic
#287D2B #284F7D #7D287A #7D5628
square
#287D2B #284F7D #7D287A #7D5628
split-complementary
#287D2B #56287D #7D284F
monochromatic
#0A200B #194F1B #287D2B #37AB3B #56C95A

Accessibility & contrast

On white

5.17
#287D2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#287D2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D2B
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D2B#FFFFFF#000000##FFFFFF
##287D2B1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807121
Deuteranopia (green-blind)
#756A32
Tritanopia (blue-blind)
#13796C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d2b;
/* rgb */ color: rgb(40, 125, 43);
/* oklch */ color: oklch(52.1% 0.143 143.7);
Tailwind
colors: {
  custom: {
    50: '#6ea368',
    500: '#287d2b',
    950: '#000000',
  },
}
SCSS
$custom: #287d2b;
$custom-light: #6ea368;
$custom-dark: #000000;
JSON
{
  "hex": "#287d2b",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 122.118,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52063,
    "c": 0.14312,
    "h": 143.7
  },
  "luminance": 0.15293
}

Semantic roles & 50–950 ramp

primary
#287D2B
secondary
#AE53AB
accent
#4DD6DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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