#287B4E#287B4E

#287B4E is a mid, moderate green. Relative luminance 0.152; OKLCH L 52.1% C 0.107 H 155.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#287B4E
RGBrgb(40, 123, 78)
HSLhsl(147, 51%, 32%)
HSVhsv(147, 67%, 48%)
CMYKcmyk(67.5%, 0%, 36.6%, 51.8%)
CIE-LABlab(45.86, -35.97, 17.51)
CIE-LCHlch(45.86, 40.01, 154.04°)
OKLaboklab(52.09% -0.0975 0.044)
OKLCHoklch(52.09% 0.107 155.7)
XYZxyz(9.3323, 15.1661, 9.6418)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287B4E #7B2855
analogous
#2C7B28 #287B4E #287B78
triadic
#287B4E #4E287B #7B4E28
tetradic
#287B4E #282C7B #7B2855 #7B7828
square
#287B4E #282C7B #7B2855 #7B7828
split-complementary
#287B4E #78287B #7B282C
monochromatic
#0A1F13 #194D31 #287B4E #37A96B #56C88A

Accessibility & contrast

On white

5.21
#287B4E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#287B4E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287B4E
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287B4E#FFFFFF#000000##FFFFFF
##287B4E1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A714B
Deuteranopia (green-blind)
#706A51
Tritanopia (blue-blind)
#007A6F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287b4e;
/* rgb */ color: rgb(40, 123, 78);
/* oklch */ color: oklch(52.1% 0.107 155.7);
Tailwind
colors: {
  custom: {
    50: '#6ca280',
    500: '#287b4e',
    950: '#000000',
  },
}
SCSS
$custom: #287b4e;
$custom-light: #6ca280;
$custom-dark: #000000;
JSON
{
  "hex": "#287b4e",
  "rgb": {
    "r": 40,
    "g": 123,
    "b": 78
  },
  "hsl": {
    "h": 147.47,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.52088,
    "c": 0.10699,
    "h": 155.7
  },
  "luminance": 0.15167
}

Semantic roles & 50–950 ramp

primary
#287B4E
secondary
#AD5283
accent
#4D9ADA
background
#F6FAF7
surface
#ECF3EE
border
#C7CDC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #287B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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