#287A22#287A22

#287A22 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.146 H 142.1°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#287A22
RGBrgb(40, 122, 34)
HSLhsl(116, 56%, 31%)
HSVhsv(116, 72%, 48%)
CMYKcmyk(67.2%, 0%, 72.1%, 52.2%)
CIE-LABlab(44.92, -42.35, 39.22)
CIE-LCHlch(44.92, 57.72, 137.20°)
OKLaboklab(51.12% -0.1153 0.0897)
OKLCHoklch(51.12% 0.146 142.1)
XYZxyz(8.1229, 14.4849, 3.8808)
Luminance0.1449 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A22 #74227A
analogous
#547A22 #287A22 #227A48
triadic
#287A22 #22287A #7A2228
tetradic
#287A22 #22547A #74227A #7A4822
square
#287A22 #22547A #74227A #7A4822
split-complementary
#287A22 #48227A #7A2254
monochromatic
#091A07 #184A15 #287A22 #38AA2F #53CD4A

Accessibility & contrast

On white

5.39
#287A22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #287A22
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287A22#FFFFFF#000000##FFFFFF
##287A221.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E15
Deuteranopia (green-blind)
#73682A
Tritanopia (blue-blind)
#177668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #287a22;
/* rgb */ color: rgb(40, 122, 34);
/* oklch */ color: oklch(51.1% 0.146 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ea162',
    500: '#287a22',
    950: '#000000',
  },
}
SCSS
$custom: #287a22;
$custom-light: #6ea162;
$custom-dark: #000000;
JSON
{
  "hex": "#287a22",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 34
  },
  "hsl": {
    "h": 115.909,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51117,
    "c": 0.14609,
    "h": 142.1
  },
  "luminance": 0.14486
}

Semantic roles & 50–950 ramp

primary
#287A22
secondary
#A64BAD
accent
#48E0D5
background
#F7FAF6
surface
#EDF3EB
border
#C8CDC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #287A22

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

Preview Lab → · Contrast checker → · Palette generator →

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