#27871B#27871B

#27871B is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.7% C 0.166 H 141.6°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#27871B
RGBrgb(39, 135, 27)
HSLhsl(113, 67%, 32%)
HSVhsv(113, 80%, 53%)
CMYKcmyk(71.1%, 0%, 80%, 47.1%)
CIE-LABlab(49.30, -47.82, 46.27)
CIE-LCHlch(49.30, 66.54, 135.94°)
OKLaboklab(54.72% -0.1304 0.1034)
OKLCHoklch(54.72% 0.166 141.6)
XYZxyz(9.6980, 17.8374, 3.9686)
Luminance0.1784 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27871B #7B1B87
analogous
#5D871B #27871B #1B8745
triadic
#27871B #1B2787 #871B27
tetradic
#27871B #1B5D87 #7B1B87 #87451B
square
#27871B #1B5D87 #7B1B87 #87451B
split-complementary
#27871B #451B87 #871B5D
monochromatic
#0A2107 #185411 #27871B #36BA25 #54D943

Accessibility & contrast

On white

4.60
#27871B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #27871B
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27871B#FFFFFF#000000##FFFFFF
##27871B1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A00
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#0F8373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #27871b;
/* rgb */ color: rgb(39, 135, 27);
/* oklch */ color: oklch(54.7% 0.166 141.6);
Tailwind
colors: {
  custom: {
    50: '#71ab60',
    500: '#27871b',
    950: '#000000',
  },
}
SCSS
$custom: #27871b;
$custom-light: #71ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#27871b",
  "rgb": {
    "r": 39,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 113.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54723,
    "c": 0.16646,
    "h": 141.6
  },
  "luminance": 0.17838
}

Semantic roles & 50–950 ramp

primary
#27871B
secondary
#AD44BA
accent
#3EEAD7
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #27871B

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

Preview Lab → · Contrast checker → · Palette generator →

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