#31871C#31871C

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

Color values

HEX#31871C
RGBrgb(49, 135, 28)
HSLhsl(108, 66%, 32%)
HSVhsv(108, 79%, 53%)
CMYKcmyk(63.7%, 0%, 79.3%, 47.1%)
CIE-LABlab(49.57, -45.51, 46.29)
CIE-LCHlch(49.57, 64.91, 134.51°)
OKLaboklab(55.03% -0.1248 0.1035)
OKLCHoklch(55.03% 0.162 140.3)
XYZxyz(10.1397, 18.0638, 4.0507)
Luminance0.1807 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31871C #721C87
analogous
#67871C #31871C #1C873C
triadic
#31871C #1C3187 #871C31
tetradic
#31871C #1C6787 #721C87 #873C1C
square
#31871C #1C6787 #721C87 #873C1C
split-complementary
#31871C #3C1C87 #871C67
monochromatic
#0C2207 #1F5411 #31871C #43BA27 #62D845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31871C#FFFFFF#000000##000000
##31871C1.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)
#8B7A01
Deuteranopia (green-blind)
#807328
Tritanopia (blue-blind)
#248273
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #31871c;
/* rgb */ color: rgb(49, 135, 28);
/* oklch */ color: oklch(55.0% 0.162 140.3);
Tailwind
colors: {
  custom: {
    50: '#75ab61',
    500: '#31871c',
    950: '#000000',
  },
}
SCSS
$custom: #31871c;
$custom-light: #75ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#31871c",
  "rgb": {
    "r": 49,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 108.224,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55029,
    "c": 0.16212,
    "h": 140.3
  },
  "luminance": 0.18065
}

Semantic roles & 50–950 ramp

primary
#31871C
secondary
#A345BA
accent
#3FE9C7
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #31871C

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

Preview Lab → · Contrast checker → · Palette generator →

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