#287F18#287F18

#287F18 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.158 H 141.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#287F18
RGBrgb(40, 127, 24)
HSLhsl(111, 68%, 30%)
HSVhsv(111, 81%, 50%)
CMYKcmyk(68.5%, 0%, 81.1%, 50.2%)
CIE-LABlab(46.57, -44.98, 44.66)
CIE-LCHlch(46.57, 63.39, 135.21°)
OKLaboklab(52.46% -0.123 0.0996)
OKLCHoklch(52.46% 0.158 141)
XYZxyz(8.6289, 15.6949, 3.4387)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F18 #6F187F
analogous
#5B7F18 #287F18 #187F3C
triadic
#287F18 #18287F #7F1828
tetradic
#287F18 #185B7F #6F187F #7F3C18
square
#287F18 #185B7F #6F187F #7F3C18
split-complementary
#287F18 #3C187F #7F185B
monochromatic
#081A05 #184C0E #287F18 #38B222 #51D938

Accessibility & contrast

On white

5.07
#287F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#287F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287F18
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287F18#FFFFFF#000000##FFFFFF
##287F181.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827300
Deuteranopia (green-blind)
#786C24
Tritanopia (blue-blind)
#177B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287f18;
/* rgb */ color: rgb(40, 127, 24);
/* oklch */ color: oklch(52.5% 0.158 141.0);
Tailwind
colors: {
  custom: {
    50: '#6fa55e',
    500: '#287f18',
    950: '#000000',
  },
}
SCSS
$custom: #287f18;
$custom-light: #6fa55e;
$custom-dark: #000000;
JSON
{
  "hex": "#287f18",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 110.68,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52464,
    "c": 0.15829,
    "h": 141
  },
  "luminance": 0.15696
}

Semantic roles & 50–950 ramp

primary
#287F18
secondary
#A13FB3
accent
#3DEBD0
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287F18

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

Preview Lab → · Contrast checker → · Palette generator →

#287F18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva