#287E22#287E22

#287E22 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.151 H 142.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#287E22
RGBrgb(40, 126, 34)
HSLhsl(116, 58%, 31%)
HSVhsv(116, 73%, 49%)
CMYKcmyk(68.3%, 0%, 73%, 50.6%)
CIE-LABlab(46.29, -43.83, 40.65)
CIE-LCHlch(46.29, 59.78, 137.15°)
OKLaboklab(52.26% -0.1194 0.0927)
OKLCHoklch(52.26% 0.151 142.2)
XYZxyz(8.6242, 15.4874, 4.0479)
Luminance0.1549 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E22 #78227E
analogous
#567E22 #287E22 #227E4A
triadic
#287E22 #22287E #7E2228
tetradic
#287E22 #22567E #78227E #7E4A22
square
#287E22 #22567E #78227E #7E4A22
split-complementary
#287E22 #4A227E #7E2256
monochromatic
#091E08 #194E15 #287E22 #37AE2F #54CF4C

Accessibility & contrast

On white

5.12
#287E22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#287E22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287E22
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E22#FFFFFF#000000##FFFFFF
##287E221.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817213
Deuteranopia (green-blind)
#776B2B
Tritanopia (blue-blind)
#167A6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e22;
/* rgb */ color: rgb(40, 126, 34);
/* oklch */ color: oklch(52.3% 0.151 142.2);
Tailwind
colors: {
  custom: {
    50: '#6fa463',
    500: '#287e22',
    950: '#000000',
  },
}
SCSS
$custom: #287e22;
$custom-light: #6fa463;
$custom-dark: #000000;
JSON
{
  "hex": "#287e22",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 116.087,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52255,
    "c": 0.15111,
    "h": 142.2
  },
  "luminance": 0.15488
}

Semantic roles & 50–950 ramp

primary
#287E22
secondary
#AA4BB1
accent
#47E1D7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #287E22

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

Preview Lab → · Contrast checker → · Palette generator →

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