#287D31#287D31

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

Color values

HEX#287D31
RGBrgb(40, 125, 49)
HSLhsl(126, 52%, 32%)
HSVhsv(126, 68%, 49%)
CMYKcmyk(68%, 0%, 60.8%, 51%)
CIE-LABlab(46.10, -41.78, 33.56)
CIE-LCHlch(46.10, 53.59, 141.22°)
OKLaboklab(52.14% -0.113 0.0793)
OKLCHoklch(52.14% 0.138 145)
XYZxyz(8.7625, 15.3392, 5.4041)
Luminance0.1534 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D31 #7D2874
analogous
#4A7D28 #287D31 #287D5C
triadic
#287D31 #31287D #7D3128
tetradic
#287D31 #284A7D #7D2874 #7D5C28
square
#287D31 #284A7D #7D2874 #7D5C28
split-complementary
#287D31 #5C287D #7D284A
monochromatic
#0A200D #194F1F #287D31 #37AB43 #56C963

Accessibility & contrast

On white

5.16
#287D31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#287D31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D31
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D31#FFFFFF#000000##FFFFFF
##287D311.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7229
Deuteranopia (green-blind)
#756A37
Tritanopia (blue-blind)
#117A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d31;
/* rgb */ color: rgb(40, 125, 49);
/* oklch */ color: oklch(52.1% 0.138 145.0);
Tailwind
colors: {
  custom: {
    50: '#6ea36c',
    500: '#287d31',
    950: '#000000',
  },
}
SCSS
$custom: #287d31;
$custom-light: #6ea36c;
$custom-dark: #000000;
JSON
{
  "hex": "#287d31",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 49
  },
  "hsl": {
    "h": 126.353,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52136,
    "c": 0.13807,
    "h": 145
  },
  "luminance": 0.1534
}

Semantic roles & 50–950 ramp

primary
#287D31
secondary
#AE53A4
accent
#4DCCDB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #287D31

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

Preview Lab → · Contrast checker → · Palette generator →

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