#287118#287118

#287118 is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.5% C 0.141 H 140.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#287118
RGBrgb(40, 113, 24)
HSLhsl(109, 65%, 27%)
HSVhsv(109, 79%, 44%)
CMYKcmyk(64.6%, 0%, 78.8%, 55.7%)
CIE-LABlab(41.73, -39.81, 39.96)
CIE-LCHlch(41.73, 56.41, 134.89°)
OKLaboklab(48.46% -0.1091 0.0898)
OKLCHoklch(48.46% 0.141 140.5)
XYZxyz(6.9447, 12.3267, 2.8773)
Luminance0.1233 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287118 #611871
analogous
#557118 #287118 #187134
triadic
#287118 #182871 #711828
tetradic
#287118 #185571 #611871 #713418
square
#287118 #185571 #611871 #713418
split-complementary
#287118 #341871 #711855
monochromatic
#091905 #163F0D #287118 #3AA323 #4ED330

Accessibility & contrast

On white

6.06
#287118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#287118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287118
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287118#FFFFFF#000000##FFFFFF
##2871181.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746605
Deuteranopia (green-blind)
#6B6022
Tritanopia (blue-blind)
#1D6D60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #287118;
/* rgb */ color: rgb(40, 113, 24);
/* oklch */ color: oklch(48.5% 0.141 140.5);
Tailwind
colors: {
  custom: {
    50: '#6c9b5c',
    500: '#287118',
    950: '#000000',
  },
}
SCSS
$custom: #287118;
$custom-light: #6c9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#287118",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 24
  },
  "hsl": {
    "h": 109.213,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48455,
    "c": 0.14128,
    "h": 140.5
  },
  "luminance": 0.12327
}

Semantic roles & 50–950 ramp

primary
#287118
secondary
#943EA6
accent
#40E8CA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #287118

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

Preview Lab → · Contrast checker → · Palette generator →

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