#287B1A#287B1A

#287B1A is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.3% C 0.152 H 141.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#287B1A
RGBrgb(40, 123, 26)
HSLhsl(111, 65%, 29%)
HSVhsv(111, 79%, 48%)
CMYKcmyk(67.5%, 0%, 78.9%, 51.8%)
CIE-LABlab(45.21, -43.40, 42.65)
CIE-LCHlch(45.21, 60.85, 135.50°)
OKLaboklab(51.34% -0.1186 0.0957)
OKLCHoklch(51.34% 0.152 141.1)
XYZxyz(8.1441, 14.6908, 3.3835)
Luminance0.1469 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287B1A #6D1A7B
analogous
#597B1A #287B1A #1A7B3D
triadic
#287B1A #1A287B #7B1A28
tetradic
#287B1A #1A597B #6D1A7B #7B3D1A
square
#287B1A #1A597B #6D1A7B #7B3D1A
split-complementary
#287B1A #3D1A7B #7B1A59
monochromatic
#081905 #18480F #287B1A #38AE25 #50D53A

Accessibility & contrast

On white

5.33
#287B1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#287B1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287B1A
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287B1A#FFFFFF#000000##FFFFFF
##287B1A1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F04
Deuteranopia (green-blind)
#746825
Tritanopia (blue-blind)
#197769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287b1a;
/* rgb */ color: rgb(40, 123, 26);
/* oklch */ color: oklch(51.3% 0.152 141.1);
Tailwind
colors: {
  custom: {
    50: '#6ea25e',
    500: '#287b1a',
    950: '#000000',
  },
}
SCSS
$custom: #287b1a;
$custom-light: #6ea25e;
$custom-dark: #000000;
JSON
{
  "hex": "#287b1a",
  "rgb": {
    "r": 40,
    "g": 123,
    "b": 26
  },
  "hsl": {
    "h": 111.34,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51337,
    "c": 0.15242,
    "h": 141.1
  },
  "luminance": 0.14692
}

Semantic roles & 50–950 ramp

primary
#287B1A
secondary
#9F42AF
accent
#40E8D0
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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