#287B22#287B22

#287B22 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.147 H 142.2°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#287B22
RGBrgb(40, 123, 34)
HSLhsl(116, 57%, 31%)
HSVhsv(116, 72%, 48%)
CMYKcmyk(67.5%, 0%, 72.4%, 51.8%)
CIE-LABlab(45.26, -42.72, 39.58)
CIE-LCHlch(45.26, 58.24, 137.19°)
OKLaboklab(51.4% -0.1163 0.0904)
OKLCHoklch(51.4% 0.147 142.2)
XYZxyz(8.2463, 14.7317, 3.9220)
Luminance0.1473 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287B22 #75227B
analogous
#547B22 #287B22 #227B48
triadic
#287B22 #22287B #7B2228
tetradic
#287B22 #22547B #75227B #7B4822
square
#287B22 #22547B #75227B #7B4822
split-complementary
#287B22 #48227B #7B2254
monochromatic
#091B07 #184B15 #287B22 #38AB2F #53CD4A

Accessibility & contrast

On white

5.32
#287B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#287B22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287B22
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287B22#FFFFFF#000000##FFFFFF
##287B221.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F14
Deuteranopia (green-blind)
#74692B
Tritanopia (blue-blind)
#177769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287b22;
/* rgb */ color: rgb(40, 123, 34);
/* oklch */ color: oklch(51.4% 0.147 142.2);
Tailwind
colors: {
  custom: {
    50: '#6ea262',
    500: '#287b22',
    950: '#000000',
  },
}
SCSS
$custom: #287b22;
$custom-light: #6ea262;
$custom-dark: #000000;
JSON
{
  "hex": "#287b22",
  "rgb": {
    "r": 40,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 115.955,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51402,
    "c": 0.14735,
    "h": 142.2
  },
  "luminance": 0.14733
}

Semantic roles & 50–950 ramp

primary
#287B22
secondary
#A74BAE
accent
#48E0D6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #287B22

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

Preview Lab → · Contrast checker → · Palette generator →

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