#31871D#31871D

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

Color values

HEX#31871D
RGBrgb(49, 135, 29)
HSLhsl(109, 65%, 32%)
HSVhsv(109, 79%, 53%)
CMYKcmyk(63.7%, 0%, 78.5%, 47.1%)
CIE-LABlab(49.58, -45.44, 45.95)
CIE-LCHlch(49.58, 64.62, 134.68°)
OKLaboklab(55.04% -0.1245 0.103)
OKLCHoklch(55.04% 0.162 140.4)
XYZxyz(10.1519, 18.0687, 4.1148)
Luminance0.1807 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31871D #731D87
analogous
#66871D #31871D #1D873E
triadic
#31871D #1D3187 #871D31
tetradic
#31871D #1D6687 #731D87 #873E1D
square
#31871D #1D6687 #731D87 #873E1D
split-complementary
#31871D #3E1D87 #871D66
monochromatic
#0C2207 #1F5512 #31871D #43B928 #62D747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31871D#FFFFFF#000000##000000
##31871D1.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)
#8B7A04
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#248273
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #31871d;
/* rgb */ color: rgb(49, 135, 29);
/* oklch */ color: oklch(55.0% 0.162 140.4);
Tailwind
colors: {
  custom: {
    50: '#75ab61',
    500: '#31871d',
    950: '#000000',
  },
}
SCSS
$custom: #31871d;
$custom-light: #75ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#31871d",
  "rgb": {
    "r": 49,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 108.679,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.55036,
    "c": 0.16158,
    "h": 140.4
  },
  "luminance": 0.1807
}

Semantic roles & 50–950 ramp

primary
#31871D
secondary
#A446B9
accent
#40E8C8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #31871D

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

Preview Lab → · Contrast checker → · Palette generator →

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