#287211#287211

#287211 is a mid, vivid green. Relative luminance 0.125; OKLCH L 48.7% C 0.146 H 139.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#287211
RGBrgb(40, 114, 17)
HSLhsl(106, 74%, 26%)
HSVhsv(106, 85%, 45%)
CMYKcmyk(64.9%, 0%, 85.1%, 55.3%)
CIE-LABlab(42.04, -40.66, 42.63)
CIE-LCHlch(42.04, 58.91, 133.64°)
OKLaboklab(48.7% -0.1117 0.0943)
OKLCHoklch(48.7% 0.146 139.8)
XYZxyz(6.9932, 12.5256, 2.5793)
Luminance0.1253 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287211 #5B1172
analogous
#587211 #287211 #11722A
triadic
#287211 #112872 #721128
tetradic
#287211 #115872 #5B1172 #722A11
square
#287211 #115872 #5B1172 #722A11
split-complementary
#287211 #2A1172 #721158
monochromatic
#091B04 #153D09 #287211 #3BA719 #4DDD21

Accessibility & contrast

On white

5.99
#287211 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#287211 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287211
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287211#FFFFFF#000000##FFFFFF
##2872111.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#6C611D
Tritanopia (blue-blind)
#1E6E60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #287211;
/* rgb */ color: rgb(40, 114, 17);
/* oklch */ color: oklch(48.7% 0.146 139.8);
Tailwind
colors: {
  custom: {
    50: '#6d9b59',
    500: '#287211',
    950: '#000000',
  },
}
SCSS
$custom: #287211;
$custom-light: #6d9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#287211",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 17
  },
  "hsl": {
    "h": 105.773,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.48698,
    "c": 0.1462,
    "h": 139.8
  },
  "luminance": 0.12526
}

Semantic roles & 50–950 ramp

primary
#287211
secondary
#8E36A9
accent
#37F1C5
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #287211

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

Preview Lab → · Contrast checker → · Palette generator →

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