#287D4C#287D4C

#287D4C is a mid, moderate green. Relative luminance 0.156; OKLCH L 52.6% C 0.112 H 154.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#287D4C
RGBrgb(40, 125, 76)
HSLhsl(145, 52%, 32%)
HSVhsv(145, 68%, 49%)
CMYKcmyk(68%, 0%, 39.2%, 51%)
CIE-LABlab(46.50, -37.24, 19.51)
CIE-LCHlch(46.50, 42.04, 152.36°)
OKLaboklab(52.6% -0.1007 0.0488)
OKLCHoklch(52.6% 0.112 154.2)
XYZxyz(9.5124, 15.6391, 9.3534)
Luminance0.1564 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D4C #7D2859
analogous
#2E7D28 #287D4C #287D77
triadic
#287D4C #4C287D #7D4C28
tetradic
#287D4C #282E7D #7D2859 #7D7728
square
#287D4C #282E7D #7D2859 #7D7728
split-complementary
#287D4C #77287D #7D282E
monochromatic
#0A2014 #194F30 #287D4C #37AB68 #56C987

Accessibility & contrast

On white

5.09
#287D4C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#287D4C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D4C
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D4C#FFFFFF#000000##FFFFFF
##287D4C1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D7349
Deuteranopia (green-blind)
#726B4F
Tritanopia (blue-blind)
#007C71
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287d4c;
/* rgb */ color: rgb(40, 125, 76);
/* oklch */ color: oklch(52.6% 0.112 154.2);
Tailwind
colors: {
  custom: {
    50: '#6da37e',
    500: '#287d4c',
    950: '#000000',
  },
}
SCSS
$custom: #287d4c;
$custom-light: #6da37e;
$custom-dark: #000000;
JSON
{
  "hex": "#287d4c",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 76
  },
  "hsl": {
    "h": 145.412,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52599,
    "c": 0.11192,
    "h": 154.2
  },
  "luminance": 0.1564
}

Semantic roles & 50–950 ramp

primary
#287D4C
secondary
#AE5387
accent
#4D9FDB
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#080F0A
muted
#7A7F7C

Preview Lab

Preview with #287D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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