#27871F#27871F

#27871F is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.8% C 0.164 H 142.0°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#27871F
RGBrgb(39, 135, 31)
HSLhsl(115, 63%, 33%)
HSVhsv(115, 77%, 53%)
CMYKcmyk(71.1%, 0%, 77%, 47.1%)
CIE-LABlab(49.32, -47.52, 44.89)
CIE-LCHlch(49.32, 65.38, 136.63°)
OKLaboklab(54.75% -0.1294 0.1011)
OKLCHoklch(54.75% 0.164 142)
XYZxyz(9.7474, 17.8572, 4.2291)
Luminance0.1786 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27871F #7F1F87
analogous
#5B871F #27871F #1F874B
triadic
#27871F #1F2787 #871F27
tetradic
#27871F #1F5B87 #7F1F87 #874B1F
square
#27871F #1F5B87 #7F1F87 #874B1F
split-complementary
#27871F #4B1F87 #871F5B
monochromatic
#0A2308 #195514 #27871F #35B92A #55D64B

Accessibility & contrast

On white

4.59
#27871F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#27871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #27871F
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27871F#FFFFFF#000000##FFFFFF
##27871F1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A09
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#0E8373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #27871f;
/* rgb */ color: rgb(39, 135, 31);
/* oklch */ color: oklch(54.8% 0.164 142.0);
Tailwind
colors: {
  custom: {
    50: '#70ab62',
    500: '#27871f',
    950: '#000000',
  },
}
SCSS
$custom: #27871f;
$custom-light: #70ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#27871f",
  "rgb": {
    "r": 39,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 115.385,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54751,
    "c": 0.16426,
    "h": 142
  },
  "luminance": 0.17858
}

Semantic roles & 50–950 ramp

primary
#27871F
secondary
#B04AB8
accent
#42E6D9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #27871F

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

Preview Lab → · Contrast checker → · Palette generator →

#27871F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva