#287A18#287A18

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

Color values

HEX#287A18
RGBrgb(40, 122, 24)
HSLhsl(110, 67%, 29%)
HSVhsv(110, 80%, 48%)
CMYKcmyk(67.2%, 0%, 80.3%, 52.2%)
CIE-LABlab(44.85, -43.17, 43.01)
CIE-LCHlch(44.85, 60.94, 135.11°)
OKLaboklab(51.04% -0.1181 0.0962)
OKLCHoklch(51.04% 0.152 140.9)
XYZxyz(7.9991, 14.4353, 3.2287)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287A18 #6A187A
analogous
#597A18 #287A18 #187A39
triadic
#287A18 #18287A #7A1828
tetradic
#287A18 #18597A #6A187A #7A3918
square
#287A18 #18597A #6A187A #7A3918
split-complementary
#287A18 #39187A #7A1859
monochromatic
#081A05 #17470E #287A18 #39AD22 #50D735

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287A18#FFFFFF#000000##FFFFFF
##287A181.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)
#7D6E01
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#1A7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #287a18;
/* rgb */ color: rgb(40, 122, 24);
/* oklch */ color: oklch(51.0% 0.152 140.9);
Tailwind
colors: {
  custom: {
    50: '#6ea15d',
    500: '#287a18',
    950: '#000000',
  },
}
SCSS
$custom: #287a18;
$custom-light: #6ea15d;
$custom-dark: #000000;
JSON
{
  "hex": "#287a18",
  "rgb": {
    "r": 40,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 110.204,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51038,
    "c": 0.15232,
    "h": 140.9
  },
  "luminance": 0.14436
}

Semantic roles & 50–950 ramp

primary
#287A18
secondary
#9D3FAF
accent
#3EEACE
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287A18

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

Preview Lab → · Contrast checker → · Palette generator →

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