#287A2F#287A2F

#287A2F is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.3% C 0.136 H 144.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#287A2F
RGBrgb(40, 122, 47)
HSLhsl(125, 51%, 32%)
HSVhsv(125, 67%, 48%)
CMYKcmyk(67.2%, 0%, 61.5%, 52.2%)
CIE-LABlab(45.05, -40.88, 33.34)
CIE-LCHlch(45.05, 52.75, 140.80°)
OKLaboklab(51.26% -0.1107 0.0786)
OKLCHoklch(51.26% 0.136 144.6)
XYZxyz(8.3472, 14.5746, 5.0621)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A2F #7A2873
analogous
#4A7A28 #287A2F #287A58
triadic
#287A2F #2F287A #7A2F28
tetradic
#287A2F #284A7A #7A2873 #7A5828
square
#287A2F #284A7A #7A2873 #7A5828
split-complementary
#287A2F #58287A #7A284A
monochromatic
#0A1E0B #194C1D #287A2F #37A841 #55C75F

Accessibility & contrast

On white

5.36
#287A2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#287A2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287A2F
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287A2F#FFFFFF#000000##FFFFFF
##287A2F1.005.363.915.36
#FFFFFF5.361.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F27
Deuteranopia (green-blind)
#726835
Tritanopia (blue-blind)
#13776A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287a2f;
/* rgb */ color: rgb(40, 122, 47);
/* oklch */ color: oklch(51.3% 0.136 144.6);
Tailwind
colors: {
  custom: {
    50: '#6da16a',
    500: '#287a2f',
    950: '#000000',
  },
}
SCSS
$custom: #287a2f;
$custom-light: #6da16a;
$custom-dark: #000000;
JSON
{
  "hex": "#287a2f",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 47
  },
  "hsl": {
    "h": 125.122,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51262,
    "c": 0.13577,
    "h": 144.6
  },
  "luminance": 0.14575
}

Semantic roles & 50–950 ramp

primary
#287A2F
secondary
#AC52A4
accent
#4ECEDA
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #287A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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