#287A28#287A28

#287A28 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.142 H 143.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#287A28
RGBrgb(40, 122, 40)
HSLhsl(120, 51%, 32%)
HSVhsv(120, 67%, 48%)
CMYKcmyk(67.2%, 0%, 67.2%, 52.2%)
CIE-LABlab(44.97, -41.73, 36.61)
CIE-LCHlch(44.97, 55.51, 138.74°)
OKLaboklab(51.18% -0.1133 0.0849)
OKLCHoklch(51.18% 0.142 143.2)
XYZxyz(8.2171, 14.5226, 4.3772)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A28 #7A287A
analogous
#517A28 #287A28 #287A51
triadic
#287A28 #28287A #7A2828
tetradic
#287A28 #28517A #7A287A #7A5128
square
#287A28 #28517A #7A287A #7A5128
split-complementary
#287A28 #51287A #7A2851
monochromatic
#0A1E0A #194C19 #287A28 #37A837 #55C755

Accessibility & contrast

On white

5.38
#287A28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#287A28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287A28
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287A28#FFFFFF#000000##FFFFFF
##287A281.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F1E
Deuteranopia (green-blind)
#73682F
Tritanopia (blue-blind)
#167669
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #287a28;
/* rgb */ color: rgb(40, 122, 40);
/* oklch */ color: oklch(51.2% 0.142 143.2);
Tailwind
colors: {
  custom: {
    50: '#6da166',
    500: '#287a28',
    950: '#000000',
  },
}
SCSS
$custom: #287a28;
$custom-light: #6da166;
$custom-dark: #000000;
JSON
{
  "hex": "#287a28",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 40
  },
  "hsl": {
    "h": 120,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51178,
    "c": 0.1416,
    "h": 143.2
  },
  "luminance": 0.14523
}

Semantic roles & 50–950 ramp

primary
#287A28
secondary
#AC52AC
accent
#4EDADA
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287A28

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

Preview Lab → · Contrast checker → · Palette generator →

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