#287221#287221

#287221 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.137 H 141.9°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#287221
RGBrgb(40, 114, 33)
HSLhsl(115, 55%, 29%)
HSVhsv(115, 71%, 45%)
CMYKcmyk(64.9%, 0%, 71.1%, 55.3%)
CIE-LABlab(42.15, -39.40, 36.71)
CIE-LCHlch(42.15, 53.85, 137.02°)
OKLaboklab(48.82% -0.1074 0.0843)
OKLCHoklch(48.82% 0.137 141.9)
XYZxyz(7.1665, 12.5949, 3.4919)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287221 #6B2172
analogous
#517221 #287221 #217243
triadic
#287221 #212872 #722128
tetradic
#287221 #215172 #6B2172 #724321
square
#287221 #215172 #6B2172 #724321
split-complementary
#287221 #432172 #722151
monochromatic
#081807 #174313 #287221 #39A12F #50C944

Accessibility & contrast

On white

5.97
#287221 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#287221 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287221
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287221#FFFFFF#000000##FFFFFF
##2872211.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756716
Deuteranopia (green-blind)
#6C6129
Tritanopia (blue-blind)
#1B6E62
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #287221;
/* rgb */ color: rgb(40, 114, 33);
/* oklch */ color: oklch(48.8% 0.137 141.9);
Tailwind
colors: {
  custom: {
    50: '#6c9b61',
    500: '#287221',
    950: '#000000',
  },
}
SCSS
$custom: #287221;
$custom-light: #6c9b61;
$custom-dark: #000000;
JSON
{
  "hex": "#287221",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 33
  },
  "hsl": {
    "h": 114.815,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4882,
    "c": 0.13652,
    "h": 141.9
  },
  "luminance": 0.12596
}

Semantic roles & 50–950 ramp

primary
#287221
secondary
#9D49A5
accent
#49DED2
background
#F6F9F5
surface
#ECF2EA
border
#C7CCC6
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #287221

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

Preview Lab → · Contrast checker → · Palette generator →

#287221 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva