#287718#287718

#287718 is a mid, vivid green. Relative luminance 0.137; OKLCH L 50.2% C 0.149 H 140.8°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#287718
RGBrgb(40, 119, 24)
HSLhsl(110, 66%, 28%)
HSVhsv(110, 80%, 47%)
CMYKcmyk(66.4%, 0%, 79.8%, 53.3%)
CIE-LABlab(43.81, -42.07, 42.01)
CIE-LCHlch(43.81, 59.45, 135.04°)
OKLaboklab(50.18% -0.1151 0.0941)
OKLCHoklch(50.18% 0.149 140.8)
XYZxyz(7.6364, 13.7100, 3.1078)
Luminance0.1371 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287718 #671877
analogous
#577718 #287718 #187737
triadic
#287718 #182877 #771828
tetradic
#287718 #185777 #671877 #773718
square
#287718 #185777 #671877 #773718
split-complementary
#287718 #371877 #771857
monochromatic
#091905 #17440E #287718 #39AA22 #4FD633

Accessibility & contrast

On white

5.61
#287718 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#287718 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287718
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287718#FFFFFF#000000##FFFFFF
##2877181.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B02
Deuteranopia (green-blind)
#716523
Tritanopia (blue-blind)
#1B7365
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #287718;
/* rgb */ color: rgb(40, 119, 24);
/* oklch */ color: oklch(50.2% 0.149 140.8);
Tailwind
colors: {
  custom: {
    50: '#6e9f5d',
    500: '#287718',
    950: '#000000',
  },
}
SCSS
$custom: #287718;
$custom-light: #6e9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#287718",
  "rgb": {
    "r": 40,
    "g": 119,
    "b": 24
  },
  "hsl": {
    "h": 109.895,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50179,
    "c": 0.14869,
    "h": 140.8
  },
  "luminance": 0.13711
}

Semantic roles & 50–950 ramp

primary
#287718
secondary
#9A3FAC
accent
#3EE9CD
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #287718

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

Preview Lab → · Contrast checker → · Palette generator →

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