#287D2C#287D2C

#287D2C is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.1% C 0.142 H 143.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#287D2C
RGBrgb(40, 125, 44)
HSLhsl(123, 52%, 32%)
HSVhsv(123, 68%, 49%)
CMYKcmyk(68%, 0%, 64.8%, 51%)
CIE-LABlab(46.04, -42.41, 35.93)
CIE-LCHlch(46.04, 55.58, 139.72°)
OKLaboklab(52.07% -0.115 0.0839)
OKLCHoklch(52.07% 0.142 143.9)
XYZxyz(8.6628, 15.2993, 4.8789)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D2C #7D2879
analogous
#4E7D28 #287D2C #287D57
triadic
#287D2C #2C287D #7D2C28
tetradic
#287D2C #284E7D #7D2879 #7D5728
square
#287D2C #284E7D #7D2879 #7D5728
split-complementary
#287D2C #57287D #7D284E
monochromatic
#0A200B #194F1C #287D2C #37AB3C #56C95C

Accessibility & contrast

On white

5.17
#287D2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#287D2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D2C
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D2C#FFFFFF#000000##FFFFFF
##287D2C1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7123
Deuteranopia (green-blind)
#756A33
Tritanopia (blue-blind)
#137A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d2c;
/* rgb */ color: rgb(40, 125, 44);
/* oklch */ color: oklch(52.1% 0.142 143.9);
Tailwind
colors: {
  custom: {
    50: '#6ea368',
    500: '#287d2c',
    950: '#000000',
  },
}
SCSS
$custom: #287d2c;
$custom-light: #6ea368;
$custom-dark: #000000;
JSON
{
  "hex": "#287d2c",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 44
  },
  "hsl": {
    "h": 122.824,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52074,
    "c": 0.14232,
    "h": 143.9
  },
  "luminance": 0.153
}

Semantic roles & 50–950 ramp

primary
#287D2C
secondary
#AE53AA
accent
#4DD4DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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