#287D2D#287D2D

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

Color values

HEX#287D2D
RGBrgb(40, 125, 45)
HSLhsl(124, 52%, 32%)
HSVhsv(124, 68%, 49%)
CMYKcmyk(68%, 0%, 64%, 51%)
CIE-LABlab(46.05, -42.29, 35.47)
CIE-LCHlch(46.05, 55.19, 140.01°)
OKLaboklab(52.09% -0.1146 0.083)
OKLCHoklch(52.09% 0.141 144.1)
XYZxyz(8.6818, 15.3069, 4.9791)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D2D #7D2878
analogous
#4E7D28 #287D2D #287D57
triadic
#287D2D #2D287D #7D2D28
tetradic
#287D2D #284E7D #7D2878 #7D5728
square
#287D2D #284E7D #7D2878 #7D5728
split-complementary
#287D2D #57287D #7D284E
monochromatic
#0A200C #194F1C #287D2D #37AB3E #56C95D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287D2D#FFFFFF#000000##FFFFFF
##287D2D1.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)
#7F7124
Deuteranopia (green-blind)
#756A34
Tritanopia (blue-blind)
#127A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d2d;
/* rgb */ color: rgb(40, 125, 45);
/* oklch */ color: oklch(52.1% 0.141 144.1);
Tailwind
colors: {
  custom: {
    50: '#6ea369',
    500: '#287d2d',
    950: '#000000',
  },
}
SCSS
$custom: #287d2d;
$custom-light: #6ea369;
$custom-dark: #000000;
JSON
{
  "hex": "#287d2d",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 45
  },
  "hsl": {
    "h": 123.529,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52086,
    "c": 0.14148,
    "h": 144.1
  },
  "luminance": 0.15308
}

Semantic roles & 50–950 ramp

primary
#287D2D
secondary
#AE53A9
accent
#4DD3DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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