#287C2B#287C2B

#287C2B is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.8% C 0.142 H 143.7°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#287C2B
RGBrgb(40, 124, 43)
HSLhsl(122, 51%, 32%)
HSVhsv(122, 68%, 49%)
CMYKcmyk(67.7%, 0%, 65.3%, 51.4%)
CIE-LABlab(45.69, -42.14, 36.01)
CIE-LCHlch(45.69, 55.43, 139.49°)
OKLaboklab(51.78% -0.1143 0.084)
OKLCHoklch(51.78% 0.142 143.7)
XYZxyz(8.5183, 15.0400, 4.7391)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287C2B #7C2879
analogous
#4F7C28 #287C2B #287C55
triadic
#287C2B #2B287C #7C2B28
tetradic
#287C2B #284F7C #7C2879 #7C5528
square
#287C2B #284F7C #7C2879 #7C5528
split-complementary
#287C2B #55287C #7C284F
monochromatic
#0A1F0B #194E1B #287C2B #37AA3B #56C85A

Accessibility & contrast

On white

5.24
#287C2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#287C2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287C2B
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287C2B#FFFFFF#000000##FFFFFF
##287C2B1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7022
Deuteranopia (green-blind)
#746932
Tritanopia (blue-blind)
#14796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #287c2b;
/* rgb */ color: rgb(40, 124, 43);
/* oklch */ color: oklch(51.8% 0.142 143.7);
Tailwind
colors: {
  custom: {
    50: '#6ea368',
    500: '#287c2b',
    950: '#000000',
  },
}
SCSS
$custom: #287c2b;
$custom-light: #6ea368;
$custom-dark: #000000;
JSON
{
  "hex": "#287c2b",
  "rgb": {
    "r": 40,
    "g": 124,
    "b": 43
  },
  "hsl": {
    "h": 122.143,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5178,
    "c": 0.14182,
    "h": 143.7
  },
  "luminance": 0.15041
}

Semantic roles & 50–950 ramp

primary
#287C2B
secondary
#AD52AA
accent
#4DD6DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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