#287218#287218

#287218 is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.7% C 0.143 H 140.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#287218
RGBrgb(40, 114, 24)
HSLhsl(109, 65%, 27%)
HSVhsv(109, 79%, 45%)
CMYKcmyk(64.9%, 0%, 78.9%, 55.3%)
CIE-LABlab(42.08, -40.19, 40.31)
CIE-LCHlch(42.08, 56.92, 134.92°)
OKLaboklab(48.74% -0.1101 0.0905)
OKLCHoklch(48.74% 0.143 140.6)
XYZxyz(7.0569, 12.5510, 2.9147)
Luminance0.1255 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287218 #621872
analogous
#557218 #287218 #187235
triadic
#287218 #182872 #721828
tetradic
#287218 #185572 #621872 #723518
square
#287218 #185572 #621872 #723518
split-complementary
#287218 #351872 #721855
monochromatic
#091905 #163F0D #287218 #3AA523 #4ED431

Accessibility & contrast

On white

5.98
#287218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#287218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287218
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287218#FFFFFF#000000##FFFFFF
##2872181.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756705
Deuteranopia (green-blind)
#6C6122
Tritanopia (blue-blind)
#1D6E61
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #287218;
/* rgb */ color: rgb(40, 114, 24);
/* oklch */ color: oklch(48.7% 0.143 140.6);
Tailwind
colors: {
  custom: {
    50: '#6c9b5c',
    500: '#287218',
    950: '#000000',
  },
}
SCSS
$custom: #287218;
$custom-light: #6c9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#287218",
  "rgb": {
    "r": 40,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 109.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.48743,
    "c": 0.14253,
    "h": 140.6
  },
  "luminance": 0.12552
}

Semantic roles & 50–950 ramp

primary
#287218
secondary
#953EA7
accent
#40E8CA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #287218

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

Preview Lab → · Contrast checker → · Palette generator →

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