#287B1B#287B1B

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

Color values

HEX#287B1B
RGBrgb(40, 123, 27)
HSLhsl(112, 64%, 29%)
HSVhsv(112, 78%, 48%)
CMYKcmyk(67.5%, 0%, 78%, 51.8%)
CIE-LABlab(45.21, -43.32, 42.29)
CIE-LCHlch(45.21, 60.54, 135.69°)
OKLaboklab(51.34% -0.1184 0.0951)
OKLCHoklch(51.34% 0.152 141.2)
XYZxyz(8.1554, 14.6953, 3.4434)
Luminance0.1470 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287B1B #6E1B7B
analogous
#587B1B #287B1B #1B7B3E
triadic
#287B1B #1B287B #7B1B28
tetradic
#287B1B #1B587B #6E1B7B #7B3E1B
square
#287B1B #1B587B #6E1B7B #7B3E1B
split-complementary
#287B1B #3E1B7B #7B1B58
monochromatic
#081906 #184910 #287B1B #38AD26 #51D43C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##287B1B#FFFFFF#000000##FFFFFF
##287B1B1.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)
#7E6F06
Deuteranopia (green-blind)
#746825
Tritanopia (blue-blind)
#197769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287b1b;
/* rgb */ color: rgb(40, 123, 27);
/* oklch */ color: oklch(51.3% 0.152 141.2);
Tailwind
colors: {
  custom: {
    50: '#6ea25f',
    500: '#287b1b',
    950: '#000000',
  },
}
SCSS
$custom: #287b1b;
$custom-light: #6ea25f;
$custom-dark: #000000;
JSON
{
  "hex": "#287b1b",
  "rgb": {
    "r": 40,
    "g": 123,
    "b": 27
  },
  "hsl": {
    "h": 111.875,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51344,
    "c": 0.15185,
    "h": 141.2
  },
  "luminance": 0.14696
}

Semantic roles & 50–950 ramp

primary
#287B1B
secondary
#A043AF
accent
#41E7D1
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #287B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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