#287B2E#287B2E

#287B2E is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.5% C 0.138 H 144.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#287B2E
RGBrgb(40, 123, 46)
HSLhsl(124, 51%, 32%)
HSVhsv(124, 67%, 48%)
CMYKcmyk(67.5%, 0%, 62.6%, 51.8%)
CIE-LABlab(45.38, -41.40, 34.21)
CIE-LCHlch(45.38, 53.70, 140.43°)
OKLaboklab(51.53% -0.1121 0.0804)
OKLCHoklch(51.53% 0.138 144.4)
XYZxyz(8.4506, 14.8134, 4.9982)
Luminance0.1481 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287B2E #7B2875
analogous
#4C7B28 #287B2E #287B58
triadic
#287B2E #2E287B #7B2E28
tetradic
#287B2E #284C7B #7B2875 #7B5828
square
#287B2E #284C7B #7B2875 #7B5828
split-complementary
#287B2E #58287B #7B284C
monochromatic
#0A1F0B #194D1D #287B2E #37A93F #56C85E

Accessibility & contrast

On white

5.30
#287B2E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#287B2E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287B2E
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287B2E#FFFFFF#000000##FFFFFF
##287B2E1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D7026
Deuteranopia (green-blind)
#736934
Tritanopia (blue-blind)
#13786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287b2e;
/* rgb */ color: rgb(40, 123, 46);
/* oklch */ color: oklch(51.5% 0.138 144.4);
Tailwind
colors: {
  custom: {
    50: '#6da26a',
    500: '#287b2e',
    950: '#000000',
  },
}
SCSS
$custom: #287b2e;
$custom-light: #6da26a;
$custom-dark: #000000;
JSON
{
  "hex": "#287b2e",
  "rgb": {
    "r": 40,
    "g": 123,
    "b": 46
  },
  "hsl": {
    "h": 124.337,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51532,
    "c": 0.13799,
    "h": 144.4
  },
  "luminance": 0.14814
}

Semantic roles & 50–950 ramp

primary
#287B2E
secondary
#AD52A6
accent
#4DD0DA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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