#287312#287312

#287312 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.0% C 0.147 H 140.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#287312
RGBrgb(40, 115, 18)
HSLhsl(106, 73%, 26%)
HSVhsv(106, 84%, 45%)
CMYKcmyk(65.2%, 0%, 84.3%, 54.9%)
CIE-LABlab(42.39, -40.97, 42.65)
CIE-LCHlch(42.39, 59.14, 133.85°)
OKLaboklab(48.99% -0.1125 0.0945)
OKLCHoklch(48.99% 0.147 140)
XYZxyz(7.1147, 12.7556, 2.6593)
Luminance0.1276 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287312 #5D1273
analogous
#587312 #287312 #12732C
triadic
#287312 #122873 #731228
tetradic
#287312 #125873 #5D1273 #732C12
square
#287312 #125873 #5D1273 #732C12
split-complementary
#287312 #2C1273 #731258
monochromatic
#091A04 #163E0A #287312 #3AA81A #4DDD23

Accessibility & contrast

On white

5.91
#287312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#287312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287312
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287312#FFFFFF#000000##FFFFFF
##2873121.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766800
Deuteranopia (green-blind)
#6D621E
Tritanopia (blue-blind)
#1D6F61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #287312;
/* rgb */ color: rgb(40, 115, 18);
/* oklch */ color: oklch(49.0% 0.147 140.0);
Tailwind
colors: {
  custom: {
    50: '#6d9c5a',
    500: '#287312',
    950: '#000000',
  },
}
SCSS
$custom: #287312;
$custom-light: #6d9c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#287312",
  "rgb": {
    "r": 40,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 106.392,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48992,
    "c": 0.14694,
    "h": 140
  },
  "luminance": 0.12756
}

Semantic roles & 50–950 ramp

primary
#287312
secondary
#9037AA
accent
#38F0C6
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #287312

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

Preview Lab → · Contrast checker → · Palette generator →

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