#31871B#31871B

#31871B is a mid, vivid green. Relative luminance 0.181; OKLCH L 55.0% C 0.163 H 140.2°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#31871B
RGBrgb(49, 135, 27)
HSLhsl(108, 67%, 32%)
HSVhsv(108, 80%, 53%)
CMYKcmyk(63.7%, 0%, 80%, 47.1%)
CIE-LABlab(49.57, -45.57, 46.62)
CIE-LCHlch(49.57, 65.20, 134.35°)
OKLaboklab(55.02% -0.125 0.1041)
OKLCHoklch(55.02% 0.163 140.2)
XYZxyz(10.1280, 18.0591, 3.9887)
Luminance0.1806 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31871B #711B87
analogous
#67871B #31871B #1B873B
triadic
#31871B #1B3187 #871B31
tetradic
#31871B #1B6787 #711B87 #873B1B
square
#31871B #1B6787 #711B87 #873B1B
split-complementary
#31871B #3B1B87 #871B67
monochromatic
#0C2107 #1E5411 #31871B #44BA25 #62D943

Accessibility & contrast

On white

4.55
#31871B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#31871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31871B
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31871B#FFFFFF#000000##000000
##31871B1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#248273
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #31871b;
/* rgb */ color: rgb(49, 135, 27);
/* oklch */ color: oklch(55.0% 0.163 140.2);
Tailwind
colors: {
  custom: {
    50: '#75ab61',
    500: '#31871b',
    950: '#000000',
  },
}
SCSS
$custom: #31871b;
$custom-light: #75ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#31871b",
  "rgb": {
    "r": 49,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 107.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55023,
    "c": 0.16265,
    "h": 140.2
  },
  "luminance": 0.1806
}

Semantic roles & 50–950 ramp

primary
#31871B
secondary
#A244BA
accent
#3EEAC7
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #31871B

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

Preview Lab → · Contrast checker → · Palette generator →

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