#287828#287828

#287828 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.6% C 0.139 H 143.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#287828
RGBrgb(40, 120, 40)
HSLhsl(120, 50%, 31%)
HSVhsv(120, 67%, 47%)
CMYKcmyk(66.7%, 0%, 66.7%, 52.9%)
CIE-LABlab(44.29, -40.96, 35.85)
CIE-LCHlch(44.29, 54.44, 138.81°)
OKLaboklab(50.61% -0.1112 0.0833)
OKLCHoklch(50.61% 0.139 143.2)
XYZxyz(7.9741, 14.0365, 4.2961)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287828 #782878
analogous
#507828 #287828 #287850
triadic
#287828 #282878 #782828
tetradic
#287828 #285078 #782878 #785028
square
#287828 #285078 #782878 #785028
split-complementary
#287828 #502878 #782850
monochromatic
#091C09 #194A19 #287828 #37A637 #54C654

Accessibility & contrast

On white

5.52
#287828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#287828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287828
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287828#FFFFFF#000000##FFFFFF
##2878281.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1E
Deuteranopia (green-blind)
#71662F
Tritanopia (blue-blind)
#177567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #287828;
/* rgb */ color: rgb(40, 120, 40);
/* oklch */ color: oklch(50.6% 0.139 143.2);
Tailwind
colors: {
  custom: {
    50: '#6da066',
    500: '#287828',
    950: '#000000',
  },
}
SCSS
$custom: #287828;
$custom-light: #6da066;
$custom-dark: #000000;
JSON
{
  "hex": "#287828",
  "rgb": {
    "r": 40,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 120,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.50609,
    "c": 0.13897,
    "h": 143.2
  },
  "luminance": 0.14037
}

Semantic roles & 50–950 ramp

primary
#287828
secondary
#AA52AA
accent
#4EDADA
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#080F06
muted
#7A7E7A

Preview Lab

Preview with #287828

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

Preview Lab → · Contrast checker → · Palette generator →

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