#287D21#287D21

#287D21 is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.0% C 0.151 H 142.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#287D21
RGBrgb(40, 125, 33)
HSLhsl(115, 58%, 31%)
HSVhsv(115, 74%, 49%)
CMYKcmyk(68%, 0%, 73.6%, 51%)
CIE-LABlab(45.94, -43.56, 40.70)
CIE-LCHlch(45.94, 59.61, 136.94°)
OKLaboklab(51.96% -0.1187 0.0926)
OKLCHoklch(51.96% 0.151 142)
XYZxyz(8.4827, 15.2273, 3.9307)
Luminance0.1523 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D21 #76217D
analogous
#567D21 #287D21 #217D48
triadic
#287D21 #21287D #7D2128
tetradic
#287D21 #21567D #76217D #7D4821
square
#287D21 #21567D #76217D #7D4821
split-complementary
#287D21 #48217D #7D2156
monochromatic
#091C07 #194D14 #287D21 #37AD2E #54CF49

Accessibility & contrast

On white

5.19
#287D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#287D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D21
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D21#FFFFFF#000000##FFFFFF
##287D211.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807112
Deuteranopia (green-blind)
#766A2A
Tritanopia (blue-blind)
#16796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d21;
/* rgb */ color: rgb(40, 125, 33);
/* oklch */ color: oklch(52.0% 0.151 142.0);
Tailwind
colors: {
  custom: {
    50: '#6ea362',
    500: '#287d21',
    950: '#000000',
  },
}
SCSS
$custom: #287d21;
$custom-light: #6ea362;
$custom-dark: #000000;
JSON
{
  "hex": "#287d21",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 115.435,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51962,
    "c": 0.15053,
    "h": 142
  },
  "luminance": 0.15228
}

Semantic roles & 50–950 ramp

primary
#287D21
secondary
#A84AB0
accent
#46E1D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #287D21

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

Preview Lab → · Contrast checker → · Palette generator →

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