#287311#287311

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

Color values

HEX#287311
RGBrgb(40, 115, 17)
HSLhsl(106, 74%, 26%)
HSVhsv(106, 85%, 45%)
CMYKcmyk(65.2%, 0%, 85.2%, 54.9%)
CIE-LABlab(42.39, -41.03, 42.95)
CIE-LCHlch(42.39, 59.40, 133.69°)
OKLaboklab(48.99% -0.1127 0.095)
OKLCHoklch(48.99% 0.147 139.9)
XYZxyz(7.1067, 12.7524, 2.6171)
Luminance0.1275 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287311 #5C1173
analogous
#597311 #287311 #11732B
triadic
#287311 #112873 #731128
tetradic
#287311 #115973 #5C1173 #732B11
square
#287311 #115973 #5C1173 #732B11
split-complementary
#287311 #2B1173 #731159
monochromatic
#091B04 #153E09 #287311 #3BA819 #4DDE21

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287311#FFFFFF#000000##FFFFFF
##2873111.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)
#6D621D
Tritanopia (blue-blind)
#1D6F61
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #287311;
/* rgb */ color: rgb(40, 115, 17);
/* oklch */ color: oklch(49.0% 0.147 139.9);
Tailwind
colors: {
  custom: {
    50: '#6d9c59',
    500: '#287311',
    950: '#000000',
  },
}
SCSS
$custom: #287311;
$custom-light: #6d9c59;
$custom-dark: #000000;
JSON
{
  "hex": "#287311",
  "rgb": {
    "r": 40,
    "g": 115,
    "b": 17
  },
  "hsl": {
    "h": 105.918,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48986,
    "c": 0.14741,
    "h": 139.9
  },
  "luminance": 0.12753
}

Semantic roles & 50–950 ramp

primary
#287311
secondary
#8F36AA
accent
#37F1C5
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #287311

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

Preview Lab → · Contrast checker → · Palette generator →

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