#31871F#31871F

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

Color values

HEX#31871F
RGBrgb(49, 135, 31)
HSLhsl(110, 63%, 33%)
HSVhsv(110, 77%, 53%)
CMYKcmyk(63.7%, 0%, 77%, 47.1%)
CIE-LABlab(49.59, -45.29, 45.25)
CIE-LCHlch(49.59, 64.02, 135.03°)
OKLaboklab(55.05% -0.124 0.1018)
OKLCHoklch(55.05% 0.16 140.6)
XYZxyz(10.1774, 18.0789, 4.2493)
Luminance0.1808 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31871F #751F87
analogous
#65871F #31871F #1F8741
triadic
#31871F #1F3187 #871F31
tetradic
#31871F #1F6587 #751F87 #87411F
square
#31871F #1F6587 #751F87 #87411F
split-complementary
#31871F #411F87 #871F65
monochromatic
#0D2308 #1F5514 #31871F #43B92A #63D64B

Accessibility & contrast

On white

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

On black

4.62
#31871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31871F
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31871F#FFFFFF#000000##000000
##31871F1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A09
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#248373
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #31871f;
/* rgb */ color: rgb(49, 135, 31);
/* oklch */ color: oklch(55.0% 0.160 140.6);
Tailwind
colors: {
  custom: {
    50: '#75ab62',
    500: '#31871f',
    950: '#000000',
  },
}
SCSS
$custom: #31871f;
$custom-light: #75ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#31871f",
  "rgb": {
    "r": 49,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 109.615,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5505,
    "c": 0.16044,
    "h": 140.6
  },
  "luminance": 0.1808
}

Semantic roles & 50–950 ramp

primary
#31871F
secondary
#A54AB8
accent
#42E6C9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #31871F

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

Preview Lab → · Contrast checker → · Palette generator →

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