#287E31#287E31

#287E31 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.139 H 144.9°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#287E31
RGBrgb(40, 126, 49)
HSLhsl(126, 52%, 33%)
HSVhsv(126, 68%, 49%)
CMYKcmyk(68.3%, 0%, 61.1%, 50.6%)
CIE-LABlab(46.44, -42.16, 33.96)
CIE-LCHlch(46.44, 54.14, 141.15°)
OKLaboklab(52.42% -0.1141 0.0802)
OKLCHoklch(52.42% 0.139 144.9)
XYZxyz(8.8897, 15.5937, 5.4465)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E31 #7E2875
analogous
#4A7E28 #287E31 #287E5C
triadic
#287E31 #31287E #7E3128
tetradic
#287E31 #284A7E #7E2875 #7E5C28
square
#287E31 #284A7E #7E2875 #7E5C28
split-complementary
#287E31 #5C287E #7E284A
monochromatic
#0B210D #19501F #287E31 #37AC43 #57CA63

Accessibility & contrast

On white

5.10
#287E31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#287E31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287E31
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E31#FFFFFF#000000##FFFFFF
##287E311.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807229
Deuteranopia (green-blind)
#766B37
Tritanopia (blue-blind)
#107B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e31;
/* rgb */ color: rgb(40, 126, 49);
/* oklch */ color: oklch(52.4% 0.139 144.9);
Tailwind
colors: {
  custom: {
    50: '#6ea46c',
    500: '#287e31',
    950: '#000000',
  },
}
SCSS
$custom: #287e31;
$custom-light: #6ea46c;
$custom-dark: #000000;
JSON
{
  "hex": "#287e31",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 49
  },
  "hsl": {
    "h": 126.279,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.52419,
    "c": 0.13941,
    "h": 144.9
  },
  "luminance": 0.15595
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #287E31

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

Preview Lab → · Contrast checker → · Palette generator →

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