#31872D#31872D

#31872D is a mid, vivid green. Relative luminance 0.182; OKLCH L 55.2% C 0.151 H 142.5°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#31872D
RGBrgb(49, 135, 45)
HSLhsl(117, 50%, 35%)
HSVhsv(117, 67%, 53%)
CMYKcmyk(63.7%, 0%, 66.7%, 47.1%)
CIE-LABlab(49.70, -44.02, 39.61)
CIE-LCHlch(49.70, 59.22, 138.02°)
OKLaboklab(55.18% -0.1198 0.0918)
OKLCHoklch(55.18% 0.151 142.5)
XYZxyz(10.4037, 18.1694, 5.4409)
Luminance0.1817 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31872D #832D87
analogous
#5E872D #31872D #2D8756
triadic
#31872D #2D3187 #872D31
tetradic
#31872D #2D5E87 #832D87 #87562D
square
#31872D #2D5E87 #832D87 #87562D
split-complementary
#31872D #562D87 #872D5E
monochromatic
#102B0E #20591E #31872D #42B53C #68CB63

Accessibility & contrast

On white

4.53
#31872D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#31872D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31872D
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31872D#FFFFFF#000000##000000
##31872D1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B22
Deuteranopia (green-blind)
#7F7335
Tritanopia (blue-blind)
#218374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #31872d;
/* rgb */ color: rgb(49, 135, 45);
/* oklch */ color: oklch(55.2% 0.151 142.5);
Tailwind
colors: {
  custom: {
    50: '#74ab6a',
    500: '#31872d',
    950: '#000000',
  },
}
SCSS
$custom: #31872d;
$custom-light: #74ab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#31872d",
  "rgb": {
    "r": 49,
    "g": 135,
    "b": 45
  },
  "hsl": {
    "h": 117.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.55176,
    "c": 0.15089,
    "h": 142.5
  },
  "luminance": 0.1817
}

Semantic roles & 50–950 ramp

primary
#31872D
secondary
#AE5EB2
accent
#4EDAD3
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091007
muted
#7B7F7A

Preview Lab

Preview with #31872D

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

Preview Lab → · Contrast checker → · Palette generator →

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