#287E18#287E18

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

Color values

HEX#287E18
RGBrgb(40, 126, 24)
HSLhsl(111, 68%, 29%)
HSVhsv(111, 81%, 49%)
CMYKcmyk(68.3%, 0%, 81%, 50.6%)
CIE-LABlab(46.23, -44.63, 44.34)
CIE-LCHlch(46.23, 62.91, 135.19°)
OKLaboklab(52.18% -0.122 0.0989)
OKLCHoklch(52.18% 0.157 141)
XYZxyz(8.5004, 15.4379, 3.3958)
Luminance0.1544 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E18 #6E187E
analogous
#5B7E18 #287E18 #187E3B
triadic
#287E18 #18287E #7E1828
tetradic
#287E18 #185B7E #6E187E #7E3B18
square
#287E18 #185B7E #6E187E #7E3B18
split-complementary
#287E18 #3B187E #7E185B
monochromatic
#081A05 #184B0E #287E18 #38B122 #51D937

Accessibility & contrast

On white

5.14
#287E18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#287E18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287E18
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E18#FFFFFF#000000##FFFFFF
##287E181.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817200
Deuteranopia (green-blind)
#776B24
Tritanopia (blue-blind)
#187A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287e18;
/* rgb */ color: rgb(40, 126, 24);
/* oklch */ color: oklch(52.2% 0.157 141.0);
Tailwind
colors: {
  custom: {
    50: '#6fa45e',
    500: '#287e18',
    950: '#000000',
  },
}
SCSS
$custom: #287e18;
$custom-light: #6fa45e;
$custom-dark: #000000;
JSON
{
  "hex": "#287e18",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 110.588,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52179,
    "c": 0.15711,
    "h": 141
  },
  "luminance": 0.15439
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #287E18

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

Preview Lab → · Contrast checker → · Palette generator →

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