#287E1C#287E1C

#287E1C is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.155 H 141.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#287E1C
RGBrgb(40, 126, 28)
HSLhsl(113, 64%, 30%)
HSVhsv(113, 78%, 49%)
CMYKcmyk(68.3%, 0%, 77.8%, 50.6%)
CIE-LABlab(46.25, -44.34, 42.95)
CIE-LCHlch(46.25, 61.73, 135.91°)
OKLaboklab(52.21% -0.1211 0.0966)
OKLCHoklch(52.21% 0.155 141.4)
XYZxyz(8.5451, 15.4558, 3.6313)
Luminance0.1546 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287E1C #721C7E
analogous
#597E1C #287E1C #1C7E41
triadic
#287E1C #1C287E #7E1C28
tetradic
#287E1C #1C597E #721C7E #7E411C
square
#287E1C #1C597E #721C7E #7E411C
split-complementary
#287E1C #411C7E #7E1C59
monochromatic
#081A06 #184C11 #287E1C #38B027 #52D540

Accessibility & contrast

On white

5.13
#287E1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #287E1C
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287E1C#FFFFFF#000000##FFFFFF
##287E1C1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817207
Deuteranopia (green-blind)
#776B27
Tritanopia (blue-blind)
#177A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287e1c;
/* rgb */ color: rgb(40, 126, 28);
/* oklch */ color: oklch(52.2% 0.155 141.4);
Tailwind
colors: {
  custom: {
    50: '#6fa460',
    500: '#287e1c',
    950: '#000000',
  },
}
SCSS
$custom: #287e1c;
$custom-light: #6fa460;
$custom-dark: #000000;
JSON
{
  "hex": "#287e1c",
  "rgb": {
    "r": 40,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 112.653,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52207,
    "c": 0.1549,
    "h": 141.4
  },
  "luminance": 0.15457
}

Semantic roles & 50–950 ramp

primary
#287E1C
secondary
#A444B2
accent
#41E7D2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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