#287F1C#287F1C

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

Color values

HEX#287F1C
RGBrgb(40, 127, 28)
HSLhsl(113, 64%, 30%)
HSVhsv(113, 78%, 50%)
CMYKcmyk(68.5%, 0%, 78%, 50.2%)
CIE-LABlab(46.60, -44.70, 43.29)
CIE-LCHlch(46.60, 62.23, 135.92°)
OKLaboklab(52.49% -0.122 0.0973)
OKLCHoklch(52.49% 0.156 141.4)
XYZxyz(8.6736, 15.7128, 3.6742)
Luminance0.1571 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F1C #731C7F
analogous
#597F1C #287F1C #1C7F41
triadic
#287F1C #1C287F #7F1C28
tetradic
#287F1C #1C597F #731C7F #7F411C
square
#287F1C #1C597F #731C7F #7F411C
split-complementary
#287F1C #411C7F #7F1C59
monochromatic
#081B06 #184D11 #287F1C #38B127 #52D540

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287F1C#FFFFFF#000000##FFFFFF
##287F1C1.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)
#827306
Deuteranopia (green-blind)
#786C27
Tritanopia (blue-blind)
#167B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287f1c;
/* rgb */ color: rgb(40, 127, 28);
/* oklch */ color: oklch(52.5% 0.156 141.4);
Tailwind
colors: {
  custom: {
    50: '#6fa560',
    500: '#287f1c',
    950: '#000000',
  },
}
SCSS
$custom: #287f1c;
$custom-light: #6fa560;
$custom-dark: #000000;
JSON
{
  "hex": "#287f1c",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 112.727,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52491,
    "c": 0.15611,
    "h": 141.4
  },
  "luminance": 0.15714
}

Semantic roles & 50–950 ramp

primary
#287F1C
secondary
#A544B3
accent
#41E7D3
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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