#287412#287412

#287412 is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.3% C 0.148 H 140.0°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#287412
RGBrgb(40, 116, 18)
HSLhsl(107, 73%, 26%)
HSVhsv(107, 84%, 45%)
CMYKcmyk(65.5%, 0%, 84.5%, 54.5%)
CIE-LABlab(42.74, -41.34, 42.97)
CIE-LCHlch(42.74, 59.63, 133.89°)
OKLaboklab(49.28% -0.1135 0.0952)
OKLCHoklch(49.28% 0.148 140)
XYZxyz(7.2293, 12.9849, 2.6975)
Luminance0.1299 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287412 #5E1274
analogous
#597412 #287412 #12742D
triadic
#287412 #122874 #741228
tetradic
#287412 #125974 #5E1274 #742D12
square
#287412 #125974 #5E1274 #742D12
split-complementary
#287412 #2D1274 #741259
monochromatic
#091A04 #163F0A #287412 #3AA91A #4DDD23

Accessibility & contrast

On white

5.84
#287412 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#287412 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287412
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287412#FFFFFF#000000##FFFFFF
##2874121.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#6E631E
Tritanopia (blue-blind)
#1D7062
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #287412;
/* rgb */ color: rgb(40, 116, 18);
/* oklch */ color: oklch(49.3% 0.148 140.0);
Tailwind
colors: {
  custom: {
    50: '#6d9d5a',
    500: '#287412',
    950: '#000000',
  },
}
SCSS
$custom: #287412;
$custom-light: #6d9d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#287412",
  "rgb": {
    "r": 40,
    "g": 116,
    "b": 18
  },
  "hsl": {
    "h": 106.531,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.49279,
    "c": 0.14814,
    "h": 140
  },
  "luminance": 0.12986
}

Semantic roles & 50–950 ramp

primary
#287412
secondary
#9137AB
accent
#38F0C7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #287412

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

Preview Lab → · Contrast checker → · Palette generator →

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