#287A20#287A20

#287A20 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.147 H 141.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#287A20
RGBrgb(40, 122, 32)
HSLhsl(115, 58%, 30%)
HSVhsv(115, 74%, 48%)
CMYKcmyk(67.2%, 0%, 73.8%, 52.2%)
CIE-LABlab(44.90, -42.53, 40.03)
CIE-LCHlch(44.90, 58.41, 136.73°)
OKLaboklab(51.1% -0.116 0.0911)
OKLCHoklch(51.1% 0.147 141.8)
XYZxyz(8.0949, 14.4737, 3.7333)
Luminance0.1447 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A20 #72207A
analogous
#557A20 #287A20 #207A45
triadic
#287A20 #20287A #7A2028
tetradic
#287A20 #20557A #72207A #7A4520
square
#287A20 #20557A #72207A #7A4520
split-complementary
#287A20 #45207A #7A2055
monochromatic
#081907 #184A13 #287A20 #38AA2D #52CE46

Accessibility & contrast

On white

5.39
#287A20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#287A20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287A20
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287A20#FFFFFF#000000##FFFFFF
##287A201.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E11
Deuteranopia (green-blind)
#736829
Tritanopia (blue-blind)
#187668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #287a20;
/* rgb */ color: rgb(40, 122, 32);
/* oklch */ color: oklch(51.1% 0.147 141.8);
Tailwind
colors: {
  custom: {
    50: '#6ea161',
    500: '#287a20',
    950: '#000000',
  },
}
SCSS
$custom: #287a20;
$custom-light: #6ea161;
$custom-dark: #000000;
JSON
{
  "hex": "#287a20",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 32
  },
  "hsl": {
    "h": 114.667,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51099,
    "c": 0.14747,
    "h": 141.8
  },
  "luminance": 0.14474
}

Semantic roles & 50–950 ramp

primary
#287A20
secondary
#A449AD
accent
#46E2D4
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287A20

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

Preview Lab → · Contrast checker → · Palette generator →

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