#287D40#287D40

#287D40 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.4% C 0.124 H 149.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#287D40
RGBrgb(40, 125, 64)
HSLhsl(137, 52%, 32%)
HSVhsv(137, 68%, 49%)
CMYKcmyk(68%, 0%, 48.8%, 51%)
CIE-LABlab(46.29, -39.50, 25.94)
CIE-LCHlch(46.29, 47.25, 146.70°)
OKLaboklab(52.37% -0.1065 0.0634)
OKLCHoklch(52.37% 0.124 149.2)
XYZxyz(9.1334, 15.4876, 7.3576)
Luminance0.1549 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D40 #7D2865
analogous
#3B7D28 #287D40 #287D6A
triadic
#287D40 #40287D #7D4028
tetradic
#287D40 #283B7D #7D2865 #7D6A28
square
#287D40 #283B7D #7D2865 #7D6A28
split-complementary
#287D40 #6A287D #7D283B
monochromatic
#0A2011 #194F28 #287D40 #37AB58 #56C977

Accessibility & contrast

On white

5.12
#287D40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#287D40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D40
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D40#FFFFFF#000000##FFFFFF
##287D401.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E723B
Deuteranopia (green-blind)
#736B44
Tritanopia (blue-blind)
#067B6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287d40;
/* rgb */ color: rgb(40, 125, 64);
/* oklch */ color: oklch(52.4% 0.124 149.2);
Tailwind
colors: {
  custom: {
    50: '#6da376',
    500: '#287d40',
    950: '#000000',
  },
}
SCSS
$custom: #287d40;
$custom-light: #6da376;
$custom-dark: #000000;
JSON
{
  "hex": "#287d40",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 64
  },
  "hsl": {
    "h": 136.941,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52366,
    "c": 0.12394,
    "h": 149.2
  },
  "luminance": 0.15489
}

Semantic roles & 50–950 ramp

primary
#287D40
secondary
#AE5394
accent
#4DB3DB
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#080F08
muted
#7A7F7B

Preview Lab

Preview with #287D40

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

Preview Lab → · Contrast checker → · Palette generator →

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