#287D42#287D42

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

Color values

HEX#287D42
RGBrgb(40, 125, 66)
HSLhsl(138, 52%, 32%)
HSVhsv(138, 68%, 49%)
CMYKcmyk(68%, 0%, 47.2%, 51%)
CIE-LABlab(46.33, -39.15, 24.89)
CIE-LCHlch(46.33, 46.39, 147.56°)
OKLaboklab(52.4% -0.1056 0.061)
OKLCHoklch(52.4% 0.122 150)
XYZxyz(9.1913, 15.5107, 7.6627)
Luminance0.1551 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D42 #7D2863
analogous
#397D28 #287D42 #287D6D
triadic
#287D42 #42287D #7D4228
tetradic
#287D42 #28397D #7D2863 #7D6D28
square
#287D42 #28397D #7D2863 #7D6D28
split-complementary
#287D42 #6D287D #7D2839
monochromatic
#0A2011 #194F2A #287D42 #37AB5A #56C979

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287D42#FFFFFF#000000##FFFFFF
##287D421.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)
#7E723D
Deuteranopia (green-blind)
#736B46
Tritanopia (blue-blind)
#047B6F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287d42;
/* rgb */ color: rgb(40, 125, 66);
/* oklch */ color: oklch(52.4% 0.122 150.0);
Tailwind
colors: {
  custom: {
    50: '#6da377',
    500: '#287d42',
    950: '#000000',
  },
}
SCSS
$custom: #287d42;
$custom-light: #6da377;
$custom-dark: #000000;
JSON
{
  "hex": "#287d42",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 66
  },
  "hsl": {
    "h": 138.353,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52402,
    "c": 0.12195,
    "h": 150
  },
  "luminance": 0.15512
}

Semantic roles & 50–950 ramp

primary
#287D42
secondary
#AE5392
accent
#4DAFDB
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #287D42

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

Preview Lab → · Contrast checker → · Palette generator →

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