#287D38#287D38

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

Color values

HEX#287D38
RGBrgb(40, 125, 56)
HSLhsl(131, 52%, 32%)
HSVhsv(131, 68%, 49%)
CMYKcmyk(68%, 0%, 55.2%, 51%)
CIE-LABlab(46.18, -40.79, 30.09)
CIE-LCHlch(46.18, 50.68, 143.59°)
OKLaboklab(52.24% -0.1101 0.0722)
OKLCHoklch(52.24% 0.132 146.7)
XYZxyz(8.9219, 15.4029, 6.2435)
Luminance0.1540 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D38 #7D286D
analogous
#437D28 #287D38 #287D62
triadic
#287D38 #38287D #7D3828
tetradic
#287D38 #28437D #7D286D #7D6228
square
#287D38 #28437D #7D286D #7D6228
split-complementary
#287D38 #62287D #7D2843
monochromatic
#0A200E #194F23 #287D38 #37AB4D #56C96C

Accessibility & contrast

On white

5.15
#287D38 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#287D38 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D38
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D38#FFFFFF#000000##FFFFFF
##287D381.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7232
Deuteranopia (green-blind)
#746B3D
Tritanopia (blue-blind)
#0C7A6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d38;
/* rgb */ color: rgb(40, 125, 56);
/* oklch */ color: oklch(52.2% 0.132 146.7);
Tailwind
colors: {
  custom: {
    50: '#6da370',
    500: '#287d38',
    950: '#000000',
  },
}
SCSS
$custom: #287d38;
$custom-light: #6da370;
$custom-dark: #000000;
JSON
{
  "hex": "#287d38",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 56
  },
  "hsl": {
    "h": 131.294,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52235,
    "c": 0.13169,
    "h": 146.7
  },
  "luminance": 0.15404
}

Semantic roles & 50–950 ramp

primary
#287D38
secondary
#AE539D
accent
#4DC0DB
background
#F6FAF6
surface
#ECF4EC
border
#C7CEC7
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #287D38

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

Preview Lab → · Contrast checker → · Palette generator →

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