#287B20#287B20

#287B20 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.149 H 141.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#287B20
RGBrgb(40, 123, 32)
HSLhsl(115, 59%, 30%)
HSVhsv(115, 74%, 48%)
CMYKcmyk(67.5%, 0%, 74%, 51.8%)
CIE-LABlab(45.25, -42.91, 40.39)
CIE-LCHlch(45.25, 58.93, 136.73°)
OKLaboklab(51.38% -0.117 0.0918)
OKLCHoklch(51.38% 0.149 141.9)
XYZxyz(8.2183, 14.7205, 3.7745)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287B20 #73207B
analogous
#567B20 #287B20 #207B45
triadic
#287B20 #20287B #7B2028
tetradic
#287B20 #20567B #73207B #7B4520
square
#287B20 #20567B #73207B #7B4520
split-complementary
#287B20 #45207B #7B2056
monochromatic
#081A07 #184A13 #287B20 #38AC2D #52CF46

Accessibility & contrast

On white

5.32
#287B20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#287B20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287B20
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287B20#FFFFFF#000000##FFFFFF
##287B201.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F11
Deuteranopia (green-blind)
#746829
Tritanopia (blue-blind)
#187769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287b20;
/* rgb */ color: rgb(40, 123, 32);
/* oklch */ color: oklch(51.4% 0.149 141.9);
Tailwind
colors: {
  custom: {
    50: '#6ea261',
    500: '#287b20',
    950: '#000000',
  },
}
SCSS
$custom: #287b20;
$custom-light: #6ea261;
$custom-dark: #000000;
JSON
{
  "hex": "#287b20",
  "rgb": {
    "r": 40,
    "g": 123,
    "b": 32
  },
  "hsl": {
    "h": 114.725,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51384,
    "c": 0.14871,
    "h": 141.9
  },
  "luminance": 0.14721
}

Semantic roles & 50–950 ramp

primary
#287B20
secondary
#A549AE
accent
#46E2D4
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287B20

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

Preview Lab → · Contrast checker → · Palette generator →

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