#287F22#287F22

#287F22 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.152 H 142.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#287F22
RGBrgb(40, 127, 34)
HSLhsl(116, 58%, 32%)
HSVhsv(116, 73%, 50%)
CMYKcmyk(68.5%, 0%, 73.2%, 50.2%)
CIE-LABlab(46.64, -44.20, 41.01)
CIE-LCHlch(46.64, 60.29, 137.14°)
OKLaboklab(52.54% -0.1203 0.0934)
OKLCHoklch(52.54% 0.152 142.2)
XYZxyz(8.7527, 15.7445, 4.0908)
Luminance0.1575 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F22 #79227F
analogous
#577F22 #287F22 #227F4B
triadic
#287F22 #22287F #7F2228
tetradic
#287F22 #22577F #79227F #7F4B22
square
#287F22 #22577F #79227F #7F4B22
split-complementary
#287F22 #4B227F #7F2257
monochromatic
#0A1E08 #194F15 #287F22 #37AF2F #55CF4C

Accessibility & contrast

On white

5.06
#287F22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#287F22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287F22
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287F22#FFFFFF#000000##FFFFFF
##287F221.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827313
Deuteranopia (green-blind)
#786C2B
Tritanopia (blue-blind)
#157B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #287f22;
/* rgb */ color: rgb(40, 127, 34);
/* oklch */ color: oklch(52.5% 0.152 142.2);
Tailwind
colors: {
  custom: {
    50: '#6fa563',
    500: '#287f22',
    950: '#000000',
  },
}
SCSS
$custom: #287f22;
$custom-light: #6fa563;
$custom-dark: #000000;
JSON
{
  "hex": "#287f22",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 116.129,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52539,
    "c": 0.15235,
    "h": 142.2
  },
  "luminance": 0.15745
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #287F22

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

Preview Lab → · Contrast checker → · Palette generator →

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