#287A1A#287A1A

#287A1A is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.1% C 0.151 H 141.1°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#287A1A
RGBrgb(40, 122, 26)
HSLhsl(111, 65%, 29%)
HSVhsv(111, 79%, 48%)
CMYKcmyk(67.2%, 0%, 78.7%, 52.2%)
CIE-LABlab(44.86, -43.03, 42.31)
CIE-LCHlch(44.86, 60.35, 135.48°)
OKLaboklab(51.05% -0.1176 0.095)
OKLCHoklch(51.05% 0.151 141.1)
XYZxyz(8.0206, 14.4440, 3.3424)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A1A #6C1A7A
analogous
#587A1A #287A1A #1A7A3C
triadic
#287A1A #1A287A #7A1A28
tetradic
#287A1A #1A587A #6C1A7A #7A3C1A
square
#287A1A #1A587A #6C1A7A #7A3C1A
split-complementary
#287A1A #3C1A7A #7A1A58
monochromatic
#081905 #17480F #287A1A #39AC25 #50D539

Accessibility & contrast

On white

5.40
#287A1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #287A1A
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287A1A#FFFFFF#000000##FFFFFF
##287A1A1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E05
Deuteranopia (green-blind)
#736825
Tritanopia (blue-blind)
#197668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #287a1a;
/* rgb */ color: rgb(40, 122, 26);
/* oklch */ color: oklch(51.1% 0.151 141.1);
Tailwind
colors: {
  custom: {
    50: '#6ea15e',
    500: '#287a1a',
    950: '#000000',
  },
}
SCSS
$custom: #287a1a;
$custom-light: #6ea15e;
$custom-dark: #000000;
JSON
{
  "hex": "#287a1a",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 26
  },
  "hsl": {
    "h": 111.25,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.51052,
    "c": 0.15121,
    "h": 141.1
  },
  "luminance": 0.14445
}

Semantic roles & 50–950 ramp

primary
#287A1A
secondary
#9E41AE
accent
#40E8CF
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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