#31871E#31871E

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

Color values

HEX#31871E
RGBrgb(49, 135, 30)
HSLhsl(109, 64%, 32%)
HSVhsv(109, 78%, 53%)
CMYKcmyk(63.7%, 0%, 77.8%, 47.1%)
CIE-LABlab(49.59, -45.37, 45.60)
CIE-LCHlch(49.59, 64.33, 134.85°)
OKLaboklab(55.04% -0.1243 0.1024)
OKLCHoklch(55.04% 0.161 140.5)
XYZxyz(10.1645, 18.0737, 4.1810)
Luminance0.1807 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31871E #741E87
analogous
#65871E #31871E #1E8740
triadic
#31871E #1E3187 #871E31
tetradic
#31871E #1E6587 #741E87 #87401E
square
#31871E #1E6587 #741E87 #87401E
split-complementary
#31871E #401E87 #871E65
monochromatic
#0D2308 #1F5513 #31871E #43B929 #63D749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #31871e;
/* rgb */ color: rgb(49, 135, 30);
/* oklch */ color: oklch(55.0% 0.161 140.5);
Tailwind
colors: {
  custom: {
    50: '#75ab62',
    500: '#31871e',
    950: '#000000',
  },
}
SCSS
$custom: #31871e;
$custom-light: #75ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#31871e",
  "rgb": {
    "r": 49,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 109.143,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.55043,
    "c": 0.16102,
    "h": 140.5
  },
  "luminance": 0.18075
}

Semantic roles & 50–950 ramp

primary
#31871E
secondary
#A448B9
accent
#41E7C9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #31871E

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

Preview Lab → · Contrast checker → · Palette generator →

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