#287F1A#287F1A

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

Color values

HEX#287F1A
RGBrgb(40, 127, 26)
HSLhsl(112, 66%, 30%)
HSVhsv(112, 80%, 50%)
CMYKcmyk(68.5%, 0%, 79.5%, 50.2%)
CIE-LABlab(46.58, -44.85, 44.00)
CIE-LCHlch(46.58, 62.82, 135.55°)
OKLaboklab(52.48% -0.1225 0.0985)
OKLCHoklch(52.48% 0.157 141.2)
XYZxyz(8.6504, 15.7036, 3.5523)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F1A #711A7F
analogous
#5B7F1A #287F1A #1A7F3E
triadic
#287F1A #1A287F #7F1A28
tetradic
#287F1A #1A5B7F #711A7F #7F3E1A
square
#287F1A #1A5B7F #711A7F #7F3E1A
split-complementary
#287F1A #3E1A7F #7F1A5B
monochromatic
#081905 #184C10 #287F1A #38B224 #52D73C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287F1A#FFFFFF#000000##FFFFFF
##287F1A1.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)
#827302
Deuteranopia (green-blind)
#786C25
Tritanopia (blue-blind)
#177B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287f1a;
/* rgb */ color: rgb(40, 127, 26);
/* oklch */ color: oklch(52.5% 0.157 141.2);
Tailwind
colors: {
  custom: {
    50: '#6fa55f',
    500: '#287f1a',
    950: '#000000',
  },
}
SCSS
$custom: #287f1a;
$custom-light: #6fa55f;
$custom-dark: #000000;
JSON
{
  "hex": "#287f1a",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 111.683,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.52477,
    "c": 0.15723,
    "h": 141.2
  },
  "luminance": 0.15704
}

Semantic roles & 50–950 ramp

primary
#287F1A
secondary
#A342B3
accent
#3FE9D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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