#287318#287318

#287318 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.0% C 0.144 H 140.6°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#287318
RGBrgb(40, 115, 24)
HSLhsl(109, 65%, 27%)
HSVhsv(109, 79%, 45%)
CMYKcmyk(65.2%, 0%, 79.1%, 54.9%)
CIE-LABlab(42.43, -40.57, 40.65)
CIE-LCHlch(42.43, 57.43, 134.94°)
OKLaboklab(49.03% -0.1111 0.0912)
OKLCHoklch(49.03% 0.144 140.6)
XYZxyz(7.1703, 12.7778, 2.9525)
Luminance0.1278 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287318 #631873
analogous
#557318 #287318 #187336
triadic
#287318 #182873 #731828
tetradic
#287318 #185573 #631873 #733618
square
#287318 #185573 #631873 #733618
split-complementary
#287318 #361873 #731855
monochromatic
#091905 #16400D #287318 #3AA623 #4ED431

Accessibility & contrast

On white

5.91
#287318 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#287318 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287318
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287318#FFFFFF#000000##FFFFFF
##2873181.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766804
Deuteranopia (green-blind)
#6D6222
Tritanopia (blue-blind)
#1C6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #287318;
/* rgb */ color: rgb(40, 115, 24);
/* oklch */ color: oklch(49.0% 0.144 140.6);
Tailwind
colors: {
  custom: {
    50: '#6d9c5c',
    500: '#287318',
    950: '#000000',
  },
}
SCSS
$custom: #287318;
$custom-light: #6d9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#287318",
  "rgb": {
    "r": 40,
    "g": 115,
    "b": 24
  },
  "hsl": {
    "h": 109.451,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.4903,
    "c": 0.14377,
    "h": 140.6
  },
  "luminance": 0.12779
}

Semantic roles & 50–950 ramp

primary
#287318
secondary
#963FA8
accent
#3FE8CB
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #287318

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

Preview Lab → · Contrast checker → · Palette generator →

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