#287F4D#287F4D

#287F4D is a mid, moderate green. Relative luminance 0.162; OKLCH L 53.2% C 0.114 H 154.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#287F4D
RGBrgb(40, 127, 77)
HSLhsl(146, 52%, 33%)
HSVhsv(146, 69%, 50%)
CMYKcmyk(68.5%, 0%, 39.4%, 50.2%)
CIE-LABlab(47.19, -37.89, 19.86)
CIE-LCHlch(47.19, 42.78, 152.34°)
OKLaboklab(53.17% -0.1024 0.0496)
OKLCHoklch(53.17% 0.114 154.2)
XYZxyz(9.8031, 16.1646, 9.6232)
Luminance0.1617 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F4D #7F285A
analogous
#2F7F28 #287F4D #287F78
triadic
#287F4D #4D287F #7F4D28
tetradic
#287F4D #282F7F #7F285A #7F7828
square
#287F4D #282F7F #7F285A #7F7828
split-complementary
#287F4D #78287F #7F282F
monochromatic
#0B2215 #195031 #287F4D #37AE69 #57CA88

Accessibility & contrast

On white

4.96
#287F4D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#287F4D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287F4D
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287F4D#FFFFFF#000000##FFFFFF
##287F4D1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F754A
Deuteranopia (green-blind)
#746D50
Tritanopia (blue-blind)
#007D72
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #287f4d;
/* rgb */ color: rgb(40, 127, 77);
/* oklch */ color: oklch(53.2% 0.114 154.2);
Tailwind
colors: {
  custom: {
    50: '#6da57f',
    500: '#287f4d',
    950: '#000000',
  },
}
SCSS
$custom: #287f4d;
$custom-light: #6da57f;
$custom-dark: #000000;
JSON
{
  "hex": "#287f4d",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 77
  },
  "hsl": {
    "h": 145.517,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.53174,
    "c": 0.11383,
    "h": 154.2
  },
  "luminance": 0.16166
}

Semantic roles & 50–950 ramp

primary
#287F4D
secondary
#AF5488
accent
#4C9FDC
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#080F0A
muted
#7A7F7C

Preview Lab

Preview with #287F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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