#287012#287012

#287012 is a mid, vivid green. Relative luminance 0.121; OKLCH L 48.1% C 0.143 H 139.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#287012
RGBrgb(40, 112, 18)
HSLhsl(106, 72%, 25%)
HSVhsv(106, 84%, 44%)
CMYKcmyk(64.3%, 0%, 83.9%, 56.1%)
CIE-LABlab(41.35, -39.84, 41.67)
CIE-LCHlch(41.35, 57.65, 133.71°)
OKLaboklab(48.13% -0.1095 0.0925)
OKLCHoklch(48.13% 0.143 139.8)
XYZxyz(6.7781, 12.0825, 2.5471)
Luminance0.1208 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287012 #5A1270
analogous
#577012 #287012 #12702B
triadic
#287012 #122870 #701228
tetradic
#287012 #125770 #5A1270 #702B12
square
#287012 #125770 #5A1270 #702B12
split-complementary
#287012 #2B1270 #701257
monochromatic
#091A04 #153B0A #287012 #3BA51A #4ED923

Accessibility & contrast

On white

6.15
#287012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#287012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287012
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287012#FFFFFF#000000##FFFFFF
##2870121.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736500
Deuteranopia (green-blind)
#6B5F1D
Tritanopia (blue-blind)
#1E6C5F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #287012;
/* rgb */ color: rgb(40, 112, 18);
/* oklch */ color: oklch(48.1% 0.143 139.8);
Tailwind
colors: {
  custom: {
    50: '#6c9a59',
    500: '#287012',
    950: '#000000',
  },
}
SCSS
$custom: #287012;
$custom-light: #6c9a59;
$custom-dark: #000000;
JSON
{
  "hex": "#287012",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 105.957,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.48126,
    "c": 0.1433,
    "h": 139.8
  },
  "luminance": 0.12083
}

Semantic roles & 50–950 ramp

primary
#287012
secondary
#8D37A7
accent
#39EFC4
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #287012

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

Preview Lab → · Contrast checker → · Palette generator →

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