#287F1F#287F1F

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

Color values

HEX#287F1F
RGBrgb(40, 127, 31)
HSLhsl(114, 61%, 31%)
HSVhsv(114, 76%, 50%)
CMYKcmyk(68.5%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.62, -44.46, 42.18)
CIE-LCHlch(46.62, 61.29, 136.51°)
OKLaboklab(52.51% -0.1212 0.0955)
OKLCHoklch(52.51% 0.154 141.8)
XYZxyz(8.7113, 15.7279, 3.8728)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287F1F #761F7F
analogous
#587F1F #287F1F #1F7F46
triadic
#287F1F #1F287F #7F1F28
tetradic
#287F1F #1F587F #761F7F #7F461F
square
#287F1F #1F587F #761F7F #7F461F
split-complementary
#287F1F #461F7F #7F1F58
monochromatic
#091D07 #194E13 #287F1F #37B02B #54D246

Accessibility & contrast

On white

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

On black

4.15
#287F1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##287F1F#FFFFFF#000000##FFFFFF
##287F1F1.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730D
Deuteranopia (green-blind)
#786C29
Tritanopia (blue-blind)
#167B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #287f1f;
/* rgb */ color: rgb(40, 127, 31);
/* oklch */ color: oklch(52.5% 0.154 141.8);
Tailwind
colors: {
  custom: {
    50: '#6fa561',
    500: '#287f1f',
    950: '#000000',
  },
}
SCSS
$custom: #287f1f;
$custom-light: #6fa561;
$custom-dark: #000000;
JSON
{
  "hex": "#287f1f",
  "rgb": {
    "r": 40,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 114.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52514,
    "c": 0.15429,
    "h": 141.8
  },
  "luminance": 0.15729
}

Semantic roles & 50–950 ramp

primary
#287F1F
secondary
#A848B2
accent
#44E4D5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #287F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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