#287F40#287F40

#287F40 is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.9% C 0.127 H 149.0°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#287F40
RGBrgb(40, 127, 64)
HSLhsl(137, 52%, 33%)
HSVhsv(137, 69%, 50%)
CMYKcmyk(68.5%, 0%, 49.6%, 50.2%)
CIE-LABlab(46.97, -40.30, 26.80)
CIE-LCHlch(46.97, 48.40, 146.38°)
OKLaboklab(52.93% -0.1087 0.0653)
OKLCHoklch(52.93% 0.127 149)
XYZxyz(9.3891, 15.9990, 7.4428)
Luminance0.1600 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F40 #7F2867
analogous
#3B7F28 #287F40 #287F6C
triadic
#287F40 #40287F #7F4028
tetradic
#287F40 #283B7F #7F2867 #7F6C28
square
#287F40 #283B7F #7F2867 #7F6C28
split-complementary
#287F40 #6C287F #7F283B
monochromatic
#0B2211 #195029 #287F40 #37AE57 #57CA77

Accessibility & contrast

On white

5.00
#287F40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#287F40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287F40
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287F40#FFFFFF#000000##FFFFFF
##287F401.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80743B
Deuteranopia (green-blind)
#756C44
Tritanopia (blue-blind)
#047D70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #287f40;
/* rgb */ color: rgb(40, 127, 64);
/* oklch */ color: oklch(52.9% 0.127 149.0);
Tailwind
colors: {
  custom: {
    50: '#6da576',
    500: '#287f40',
    950: '#000000',
  },
}
SCSS
$custom: #287f40;
$custom-light: #6da576;
$custom-dark: #000000;
JSON
{
  "hex": "#287f40",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 64
  },
  "hsl": {
    "h": 136.552,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52925,
    "c": 0.12678,
    "h": 149
  },
  "luminance": 0.16
}

Semantic roles & 50–950 ramp

primary
#287F40
secondary
#AF5496
accent
#4CB4DC
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#080F08
muted
#7B7F7B

Preview Lab

Preview with #287F40

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

Preview Lab → · Contrast checker → · Palette generator →

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