#287D27#287D27

#287D27 is a mid, vivid green. Relative luminance 0.153; OKLCH L 52.0% C 0.146 H 143.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#287D27
RGBrgb(40, 125, 39)
HSLhsl(119, 52%, 32%)
HSVhsv(119, 69%, 49%)
CMYKcmyk(68%, 0%, 68.8%, 51%)
CIE-LABlab(45.99, -42.97, 38.18)
CIE-LCHlch(45.99, 57.48, 138.37°)
OKLaboklab(52.02% -0.1167 0.0881)
OKLCHoklch(52.02% 0.146 143)
XYZxyz(8.5744, 15.2640, 4.4134)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#287D27 #7C277D
analogous
#537D27 #287D27 #277D51
triadic
#287D27 #27287D #7D2728
tetradic
#287D27 #27537D #7C277D #7D5127
square
#287D27 #27537D #7C277D #7D5127
split-complementary
#287D27 #51277D #7D2753
monochromatic
#0A200A #194E18 #287D27 #37AC36 #56CA55

Accessibility & contrast

On white

5.18
#287D27 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#287D27 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #287D27
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##287D27#FFFFFF#000000##FFFFFF
##287D271.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80711C
Deuteranopia (green-blind)
#766A2F
Tritanopia (blue-blind)
#15796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #287d27;
/* rgb */ color: rgb(40, 125, 39);
/* oklch */ color: oklch(52.0% 0.146 143.0);
Tailwind
colors: {
  custom: {
    50: '#6ea365',
    500: '#287d27',
    950: '#000000',
  },
}
SCSS
$custom: #287d27;
$custom-light: #6ea365;
$custom-dark: #000000;
JSON
{
  "hex": "#287d27",
  "rgb": {
    "r": 40,
    "g": 125,
    "b": 39
  },
  "hsl": {
    "h": 119.302,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.52019,
    "c": 0.14626,
    "h": 143
  },
  "luminance": 0.15265
}

Semantic roles & 50–950 ramp

primary
#287D27
secondary
#AD51AF
accent
#4CDCDA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F06
muted
#7B7F7A

Preview Lab

Preview with #287D27

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

Preview Lab → · Contrast checker → · Palette generator →

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