#287D3D#287D3D

#287D3D is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.127 H 148.2°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#287D3D
RGBrgb(40, 125, 61)
HSLhsl(135, 52%, 32%)
HSVhsv(135, 68%, 49%)
CMYKcmyk(68%, 0%, 51.2%, 51%)
CIE-LABlab(46.25, -40.00, 27.51)
CIE-LCHlch(46.25, 48.55, 145.48°)
OKLaboklab(52.32% -0.1079 0.0668)
OKLCHoklch(52.32% 0.127 148.2)
XYZxyz(9.0503, 15.4543, 6.9200)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D3D #7D2868
analogous
#3D7D28 #287D3D #287D68
triadic
#287D3D #3D287D #7D3D28
tetradic
#287D3D #283D7D #7D2868 #7D6828
square
#287D3D #283D7D #7D2868 #7D6828
split-complementary
#287D3D #68287D #7D283D
monochromatic
#0A2010 #194F26 #287D3D #37AB54 #56C973

Accessibility & contrast

On white

5.13
#287D3D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#287D3D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D3D
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D3D#FFFFFF#000000##FFFFFF
##287D3D1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7238
Deuteranopia (green-blind)
#746B42
Tritanopia (blue-blind)
#087A6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287d3d;
/* rgb */ color: rgb(40, 125, 61);
/* oklch */ color: oklch(52.3% 0.127 148.2);
Tailwind
colors: {
  custom: {
    50: '#6da374',
    500: '#287d3d',
    950: '#000000',
  },
}
SCSS
$custom: #287d3d;
$custom-light: #6da374;
$custom-dark: #000000;
JSON
{
  "hex": "#287d3d",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 61
  },
  "hsl": {
    "h": 134.824,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52315,
    "c": 0.12689,
    "h": 148.2
  },
  "luminance": 0.15455
}

Semantic roles & 50–950 ramp

primary
#287D3D
secondary
#AE5397
accent
#4DB8DB
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#080F08
muted
#7A7F7B

Preview Lab

Preview with #287D3D

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

Preview Lab → · Contrast checker → · Palette generator →

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