#287918#287918

#287918 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.151 H 140.8°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#287918
RGBrgb(40, 121, 24)
HSLhsl(110, 67%, 28%)
HSVhsv(110, 80%, 47%)
CMYKcmyk(66.9%, 0%, 80.2%, 52.5%)
CIE-LABlab(44.51, -42.81, 42.68)
CIE-LCHlch(44.51, 60.45, 135.09°)
OKLaboklab(50.75% -0.1171 0.0955)
OKLCHoklch(50.75% 0.151 140.8)
XYZxyz(7.8769, 14.1910, 3.1880)
Luminance0.1419 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287918 #691879
analogous
#587918 #287918 #187938
triadic
#287918 #182879 #791828
tetradic
#287918 #185879 #691879 #793818
square
#287918 #185879 #691879 #793818
split-complementary
#287918 #381879 #791858
monochromatic
#081A05 #17460E #287918 #39AC22 #4FD735

Accessibility & contrast

On white

5.47
#287918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#287918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287918
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287918#FFFFFF#000000##FFFFFF
##2879181.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#1A7567
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #287918;
/* rgb */ color: rgb(40, 121, 24);
/* oklch */ color: oklch(50.8% 0.151 140.8);
Tailwind
colors: {
  custom: {
    50: '#6ea15d',
    500: '#287918',
    950: '#000000',
  },
}
SCSS
$custom: #287918;
$custom-light: #6ea15d;
$custom-dark: #000000;
JSON
{
  "hex": "#287918",
  "rgb": {
    "r": 40,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 110.103,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50752,
    "c": 0.15112,
    "h": 140.8
  },
  "luminance": 0.14192
}

Semantic roles & 50–950 ramp

primary
#287918
secondary
#9C3FAE
accent
#3EEACD
background
#F7FAF5
surface
#EDF3E9
border
#C8CDC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287918

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

Preview Lab → · Contrast checker → · Palette generator →

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