#287B27#287B27

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

Color values

HEX#287B27
RGBrgb(40, 123, 39)
HSLhsl(119, 52%, 32%)
HSVhsv(119, 68%, 48%)
CMYKcmyk(67.5%, 0%, 68.3%, 51.8%)
CIE-LABlab(45.31, -42.22, 37.44)
CIE-LCHlch(45.31, 56.42, 138.43°)
OKLaboklab(51.45% -0.1147 0.0865)
OKLCHoklch(51.45% 0.144 143)
XYZxyz(8.3238, 14.7627, 4.3299)
Luminance0.1476 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287B27 #7A277B
analogous
#527B27 #287B27 #277B50
triadic
#287B27 #27287B #7B2728
tetradic
#287B27 #27527B #7A277B #7B5027
square
#287B27 #27527B #7A277B #7B5027
split-complementary
#287B27 #50277B #7B2752
monochromatic
#0A1E0A #194D18 #287B27 #37A936 #55C954

Accessibility & contrast

On white

5.31
#287B27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#287B27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287B27
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287B27#FFFFFF#000000##FFFFFF
##287B271.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F1C
Deuteranopia (green-blind)
#74692F
Tritanopia (blue-blind)
#16776A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #287b27;
/* rgb */ color: rgb(40, 123, 39);
/* oklch */ color: oklch(51.5% 0.144 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ea265',
    500: '#287b27',
    950: '#000000',
  },
}
SCSS
$custom: #287b27;
$custom-light: #6ea265;
$custom-dark: #000000;
JSON
{
  "hex": "#287b27",
  "rgb": {
    "r": 40,
    "g": 123,
    "b": 39
  },
  "hsl": {
    "h": 119.286,
    "s": 51.852,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51452,
    "c": 0.14368,
    "h": 143
  },
  "luminance": 0.14764
}

Semantic roles & 50–950 ramp

primary
#287B27
secondary
#AC51AD
accent
#4CDBDA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287B27

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

Preview Lab → · Contrast checker → · Palette generator →

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