#287D2F#287D2F

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

Color values

HEX#287D2F
RGBrgb(40, 125, 47)
HSLhsl(125, 52%, 32%)
HSVhsv(125, 68%, 49%)
CMYKcmyk(68%, 0%, 62.4%, 51%)
CIE-LABlab(46.07, -42.04, 34.52)
CIE-LCHlch(46.07, 54.40, 140.61°)
OKLaboklab(52.11% -0.1138 0.0812)
OKLCHoklch(52.11% 0.14 144.5)
XYZxyz(8.7212, 15.3227, 5.1867)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D2F #7D2876
analogous
#4C7D28 #287D2F #287D59
triadic
#287D2F #2F287D #7D2F28
tetradic
#287D2F #284C7D #7D2876 #7D5928
square
#287D2F #284C7D #7D2876 #7D5928
split-complementary
#287D2F #59287D #7D284C
monochromatic
#0A200C #194F1E #287D2F #37AB40 #56C960

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287D2F#FFFFFF#000000##FFFFFF
##287D2F1.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)
#7F7127
Deuteranopia (green-blind)
#756A35
Tritanopia (blue-blind)
#117A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d2f;
/* rgb */ color: rgb(40, 125, 47);
/* oklch */ color: oklch(52.1% 0.140 144.5);
Tailwind
colors: {
  custom: {
    50: '#6ea36a',
    500: '#287d2f',
    950: '#000000',
  },
}
SCSS
$custom: #287d2f;
$custom-light: #6ea36a;
$custom-dark: #000000;
JSON
{
  "hex": "#287d2f",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 47
  },
  "hsl": {
    "h": 124.941,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52111,
    "c": 0.1398,
    "h": 144.5
  },
  "luminance": 0.15324
}

Semantic roles & 50–950 ramp

primary
#287D2F
secondary
#AE53A7
accent
#4DCFDB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #287D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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