#287740#287740

#287740 is a mid, moderate green. Relative luminance 0.140; OKLCH L 50.7% C 0.115 H 150.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#287740
RGBrgb(40, 119, 64)
HSLhsl(138, 50%, 31%)
HSVhsv(138, 66%, 47%)
CMYKcmyk(66.4%, 0%, 46.2%, 53.3%)
CIE-LABlab(44.25, -37.03, 23.34)
CIE-LCHlch(44.25, 43.77, 147.77°)
OKLaboklab(50.68% -0.0999 0.0574)
OKLCHoklch(50.68% 0.115 150.1)
XYZxyz(8.3967, 14.0141, 7.1120)
Luminance0.1401 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287740 #77285F
analogous
#377728 #287740 #287767
triadic
#287740 #402877 #774028
tetradic
#287740 #283777 #77285F #776728
square
#287740 #283777 #77285F #776728
split-complementary
#287740 #672877 #772837
monochromatic
#091B0F #194927 #287740 #37A559 #54C576

Accessibility & contrast

On white

5.52
#287740 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#287740 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287740
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287740#FFFFFF#000000##FFFFFF
##2877401.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786D3C
Deuteranopia (green-blind)
#6E6644
Tritanopia (blue-blind)
#0B756A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #287740;
/* rgb */ color: rgb(40, 119, 64);
/* oklch */ color: oklch(50.7% 0.115 150.1);
Tailwind
colors: {
  custom: {
    50: '#6c9f75',
    500: '#287740',
    950: '#000000',
  },
}
SCSS
$custom: #287740;
$custom-light: #6c9f75;
$custom-dark: #000000;
JSON
{
  "hex": "#287740",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 64
  },
  "hsl": {
    "h": 138.228,
    "s": 49.686,
    "l": 31.176
  },
  "oklch": {
    "l": 0.50684,
    "c": 0.11525,
    "h": 150.1
  },
  "luminance": 0.14015
}

Semantic roles & 50–950 ramp

primary
#287740
secondary
#A9528F
accent
#4FAFD9
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #287740

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

Preview Lab → · Contrast checker → · Palette generator →

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