#287131#287131

#287131 is a mid, vivid green. Relative luminance 0.125; OKLCH L 48.7% C 0.121 H 145.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#287131
RGBrgb(40, 113, 49)
HSLhsl(127, 48%, 30%)
HSVhsv(127, 65%, 44%)
CMYKcmyk(64.6%, 0%, 56.6%, 55.7%)
CIE-LABlab(41.97, -37.02, 28.68)
CIE-LCHlch(41.97, 46.83, 142.23°)
OKLaboklab(48.73% -0.1002 0.0686)
OKLCHoklch(48.73% 0.121 145.6)
XYZxyz(7.3341, 12.4824, 4.9280)
Luminance0.1248 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287131 #712868
analogous
#447128 #287131 #287155
triadic
#287131 #312871 #713128
tetradic
#287131 #284471 #712868 #715528
square
#287131 #284471 #712868 #715528
split-complementary
#287131 #552871 #712844
monochromatic
#08170A #18441D #287131 #389E45 #52C260

Accessibility & contrast

On white

6.01
#287131 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#287131 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287131
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287131#FFFFFF#000000##FFFFFF
##2871311.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73672B
Deuteranopia (green-blind)
#6A6136
Tritanopia (blue-blind)
#176E63
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #287131;
/* rgb */ color: rgb(40, 113, 49);
/* oklch */ color: oklch(48.7% 0.121 145.6);
Tailwind
colors: {
  custom: {
    50: '#6b9a6b',
    500: '#287131',
    950: '#000000',
  },
}
SCSS
$custom: #287131;
$custom-light: #6b9a6b;
$custom-dark: #000000;
JSON
{
  "hex": "#287131",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 49
  },
  "hsl": {
    "h": 127.397,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.48733,
    "c": 0.12142,
    "h": 145.6
  },
  "luminance": 0.12483
}

Semantic roles & 50–950 ramp

primary
#287131
secondary
#A35299
accent
#50C7D7
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #287131

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

Preview Lab → · Contrast checker → · Palette generator →

#287131 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva