#31982D#31982D

#31982D is a mid, vivid green. Relative luminance 0.233; OKLCH L 59.9% C 0.172 H 142.6°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#31982D
RGBrgb(49, 152, 45)
HSLhsl(118, 54%, 39%)
HSVhsv(118, 70%, 60%)
CMYKcmyk(67.8%, 0%, 70.4%, 40.4%)
CIE-LABlab(55.38, -50.26, 45.73)
CIE-LCHlch(55.38, 67.95, 137.70°)
OKLaboklab(59.87% -0.1367 0.1047)
OKLCHoklch(59.87% 0.172 142.6)
XYZxyz(12.9678, 23.2976, 6.2956)
Luminance0.2330 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31982D #942D98
analogous
#66982D #31982D #2D985E
triadic
#31982D #2D3198 #982D31
tetradic
#31982D #2D6698 #942D98 #985E2D
square
#31982D #2D6698 #942D98 #985E2D
split-complementary
#31982D #5E2D98 #982D66
monochromatic
#133A11 #22691F #31982D #42C53D #70D36C

Accessibility & contrast

On white

3.71
#31982D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#31982D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31982D
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31982D#FFFFFF#000000##000000
##31982D1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8A1D
Deuteranopia (green-blind)
#8F8137
Tritanopia (blue-blind)
#199383
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #31982d;
/* rgb */ color: rgb(49, 152, 45);
/* oklch */ color: oklch(59.9% 0.172 142.6);
Tailwind
colors: {
  custom: {
    50: '#78b76c',
    500: '#31982d',
    950: '#000000',
  },
}
SCSS
$custom: #31982d;
$custom-light: #78b76c;
$custom-dark: #000000;
JSON
{
  "hex": "#31982d",
  "rgb": {
    "r": 49,
    "g": 152,
    "b": 45
  },
  "hsl": {
    "h": 117.757,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.59872,
    "c": 0.17216,
    "h": 142.6
  },
  "luminance": 0.23299
}

Semantic roles & 50–950 ramp

primary
#31982D
secondary
#B766BA
accent
#4ADED8
background
#F7FBF6
surface
#EEF6EC
border
#C9D0C7
text
#0A1107
muted
#7C807A

Preview Lab

Preview with #31982D

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

Preview Lab → · Contrast checker → · Palette generator →

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