#287D2E#287D2E

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

Color values

HEX#287D2E
RGBrgb(40, 125, 46)
HSLhsl(124, 52%, 32%)
HSVhsv(124, 68%, 49%)
CMYKcmyk(68%, 0%, 63.2%, 51%)
CIE-LABlab(46.06, -42.16, 35.00)
CIE-LCHlch(46.06, 54.79, 140.31°)
OKLaboklab(52.1% -0.1142 0.0821)
OKLCHoklch(52.1% 0.141 144.3)
XYZxyz(8.7013, 15.3147, 5.0817)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D2E #7D2877
analogous
#4D7D28 #287D2E #287D58
triadic
#287D2E #2E287D #7D2E28
tetradic
#287D2E #284D7D #7D2877 #7D5828
square
#287D2E #284D7D #7D2877 #7D5828
split-complementary
#287D2E #58287D #7D284D
monochromatic
#0A200C #194F1D #287D2E #37AB3F #56C95E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287D2E#FFFFFF#000000##FFFFFF
##287D2E1.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)
#7F7125
Deuteranopia (green-blind)
#756A35
Tritanopia (blue-blind)
#127A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d2e;
/* rgb */ color: rgb(40, 125, 46);
/* oklch */ color: oklch(52.1% 0.141 144.3);
Tailwind
colors: {
  custom: {
    50: '#6ea36a',
    500: '#287d2e',
    950: '#000000',
  },
}
SCSS
$custom: #287d2e;
$custom-light: #6ea36a;
$custom-dark: #000000;
JSON
{
  "hex": "#287d2e",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 46
  },
  "hsl": {
    "h": 124.235,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52098,
    "c": 0.14065,
    "h": 144.3
  },
  "luminance": 0.15316
}

Semantic roles & 50–950 ramp

primary
#287D2E
secondary
#AE53A8
accent
#4DD1DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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