#287D34#287D34

#287D34 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.135 H 145.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#287D34
RGBrgb(40, 125, 52)
HSLhsl(128, 52%, 32%)
HSVhsv(128, 68%, 49%)
CMYKcmyk(68%, 0%, 58.4%, 51%)
CIE-LABlab(46.13, -41.37, 32.09)
CIE-LCHlch(46.13, 52.36, 142.20°)
OKLaboklab(52.18% -0.1118 0.0763)
OKLCHoklch(52.18% 0.135 145.7)
XYZxyz(8.8279, 15.3654, 5.7487)
Luminance0.1537 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D34 #7D2871
analogous
#467D28 #287D34 #287D5F
triadic
#287D34 #34287D #7D3428
tetradic
#287D34 #28467D #7D2871 #7D5F28
square
#287D34 #28467D #7D2871 #7D5F28
split-complementary
#287D34 #5F287D #7D2846
monochromatic
#0A200D #194F21 #287D34 #37AB47 #56C967

Accessibility & contrast

On white

5.16
#287D34 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#287D34 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D34
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D34#FFFFFF#000000##FFFFFF
##287D341.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F722D
Deuteranopia (green-blind)
#756A3A
Tritanopia (blue-blind)
#0F7A6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d34;
/* rgb */ color: rgb(40, 125, 52);
/* oklch */ color: oklch(52.2% 0.135 145.7);
Tailwind
colors: {
  custom: {
    50: '#6da36e',
    500: '#287d34',
    950: '#000000',
  },
}
SCSS
$custom: #287d34;
$custom-light: #6da36e;
$custom-dark: #000000;
JSON
{
  "hex": "#287d34",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 52
  },
  "hsl": {
    "h": 128.471,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52177,
    "c": 0.13539,
    "h": 145.7
  },
  "luminance": 0.15366
}

Semantic roles & 50–950 ramp

primary
#287D34
secondary
#AE53A1
accent
#4DC7DB
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #287D34

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

Preview Lab → · Contrast checker → · Palette generator →

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