#287212#287212

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

Color values

HEX#287212
RGBrgb(40, 114, 18)
HSLhsl(106, 73%, 26%)
HSVhsv(106, 84%, 45%)
CMYKcmyk(64.9%, 0%, 84.2%, 55.3%)
CIE-LABlab(42.04, -40.60, 42.33)
CIE-LCHlch(42.04, 58.65, 133.81°)
OKLaboklab(48.7% -0.1115 0.0938)
OKLCHoklch(48.7% 0.146 139.9)
XYZxyz(7.0012, 12.5288, 2.6215)
Luminance0.1253 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287212 #5C1272
analogous
#587212 #287212 #12722C
triadic
#287212 #122872 #721228
tetradic
#287212 #125872 #5C1272 #722C12
square
#287212 #125872 #5C1272 #722C12
split-complementary
#287212 #2C1272 #721258
monochromatic
#091A04 #153D0A #287212 #3BA71A #4DDC23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287212#FFFFFF#000000##FFFFFF
##2872121.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)
#6C611E
Tritanopia (blue-blind)
#1E6E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #287212;
/* rgb */ color: rgb(40, 114, 18);
/* oklch */ color: oklch(48.7% 0.146 139.9);
Tailwind
colors: {
  custom: {
    50: '#6d9b59',
    500: '#287212',
    950: '#000000',
  },
}
SCSS
$custom: #287212;
$custom-light: #6d9b59;
$custom-dark: #000000;
JSON
{
  "hex": "#287212",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 106.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48703,
    "c": 0.14573,
    "h": 139.9
  },
  "luminance": 0.12529
}

Semantic roles & 50–950 ramp

primary
#287212
secondary
#8F37A9
accent
#38EFC5
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #287212

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

Preview Lab → · Contrast checker → · Palette generator →

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