#287B16#287B16

#287B16 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.3% C 0.155 H 140.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#287B16
RGBrgb(40, 123, 22)
HSLhsl(109, 70%, 28%)
HSVhsv(109, 82%, 48%)
CMYKcmyk(67.5%, 0%, 82.1%, 51.8%)
CIE-LABlab(45.18, -43.67, 44.00)
CIE-LCHlch(45.18, 62.00, 134.79°)
OKLaboklab(51.31% -0.1196 0.0979)
OKLCHoklch(51.31% 0.155 140.7)
XYZxyz(8.1024, 14.6741, 3.1643)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287B16 #69167B
analogous
#5A7B16 #287B16 #167B36
triadic
#287B16 #16287B #7B1628
tetradic
#287B16 #165A7B #69167B #7B3616
square
#287B16 #165A7B #69167B #7B3616
split-complementary
#287B16 #36167B #7B165A
monochromatic
#081A05 #17470D #287B16 #39AF1F #4FDA31

Accessibility & contrast

On white

5.34
#287B16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#287B16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287B16
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287B16#FFFFFF#000000##FFFFFF
##287B161.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#756822
Tritanopia (blue-blind)
#197768
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287b16;
/* rgb */ color: rgb(40, 123, 22);
/* oklch */ color: oklch(51.3% 0.155 140.7);
Tailwind
colors: {
  custom: {
    50: '#6fa25c',
    500: '#287b16',
    950: '#000000',
  },
}
SCSS
$custom: #287b16;
$custom-light: #6fa25c;
$custom-dark: #000000;
JSON
{
  "hex": "#287b16",
  "rgb": {
    "r": 40,
    "g": 123,
    "b": 22
  },
  "hsl": {
    "h": 109.307,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51311,
    "c": 0.15456,
    "h": 140.7
  },
  "luminance": 0.14675
}

Semantic roles & 50–950 ramp

primary
#287B16
secondary
#9C3DB0
accent
#3BECCD
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F04
muted
#7B7F79

Preview Lab

Preview with #287B16

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

Preview Lab → · Contrast checker → · Palette generator →

#287B16 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva