#287A1C#287A1C

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

Color values

HEX#287A1C
RGBrgb(40, 122, 28)
HSLhsl(112, 63%, 29%)
HSVhsv(112, 77%, 48%)
CMYKcmyk(67.2%, 0%, 77%, 52.2%)
CIE-LABlab(44.88, -42.87, 41.58)
CIE-LCHlch(44.88, 59.73, 135.88°)
OKLaboklab(51.07% -0.1171 0.0938)
OKLCHoklch(51.07% 0.15 141.3)
XYZxyz(8.0438, 14.4532, 3.4642)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A1C #6E1C7A
analogous
#577A1C #287A1C #1C7A3F
triadic
#287A1C #1C287A #7A1C28
tetradic
#287A1C #1C577A #6E1C7A #7A3F1C
square
#287A1C #1C577A #6E1C7A #7A3F1C
split-complementary
#287A1C #3F1C7A #7A1C57
monochromatic
#081906 #184811 #287A1C #38AC27 #51D33E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287A1C#FFFFFF#000000##FFFFFF
##287A1C1.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)
#7D6E09
Deuteranopia (green-blind)
#736826
Tritanopia (blue-blind)
#197668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #287a1c;
/* rgb */ color: rgb(40, 122, 28);
/* oklch */ color: oklch(51.1% 0.150 141.3);
Tailwind
colors: {
  custom: {
    50: '#6ea15f',
    500: '#287a1c',
    950: '#000000',
  },
}
SCSS
$custom: #287a1c;
$custom-light: #6ea15f;
$custom-dark: #000000;
JSON
{
  "hex": "#287a1c",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 28
  },
  "hsl": {
    "h": 112.34,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51067,
    "c": 0.15002,
    "h": 141.3
  },
  "luminance": 0.14454
}

Semantic roles & 50–950 ramp

primary
#287A1C
secondary
#A044AE
accent
#42E6D1
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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