#31781D#31781D

#31781D is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.143 H 139.7°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#31781D
RGBrgb(49, 120, 29)
HSLhsl(107, 61%, 29%)
HSVhsv(107, 76%, 47%)
CMYKcmyk(59.2%, 0%, 75.8%, 52.9%)
CIE-LABlab(44.48, -39.72, 40.90)
CIE-LCHlch(44.48, 57.01, 134.17°)
OKLaboklab(50.82% -0.1091 0.0924)
OKLCHoklch(50.82% 0.143 139.7)
XYZxyz(8.2045, 14.1739, 3.4656)
Luminance0.1417 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31781D #641D78
analogous
#5F781D #31781D #1D7837
triadic
#31781D #1D3178 #781D31
tetradic
#31781D #1D5F78 #641D78 #78371D
square
#31781D #1D5F78 #641D78 #78371D
split-complementary
#31781D #371D78 #781D5F
monochromatic
#0A1906 #1D4711 #31781D #45A929 #5FD13F

Accessibility & contrast

On white

5.48
#31781D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#31781D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31781D
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31781D#FFFFFF#000000##FFFFFF
##31781D1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D0C
Deuteranopia (green-blind)
#736726
Tritanopia (blue-blind)
#297466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #31781d;
/* rgb */ color: rgb(49, 120, 29);
/* oklch */ color: oklch(50.8% 0.143 139.7);
Tailwind
colors: {
  custom: {
    50: '#72a05f',
    500: '#31781d',
    950: '#000000',
  },
}
SCSS
$custom: #31781d;
$custom-light: #72a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#31781d",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 106.813,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50823,
    "c": 0.14298,
    "h": 139.7
  },
  "luminance": 0.14175
}

Semantic roles & 50–950 ramp

primary
#31781D
secondary
#9545AC
accent
#44E4C1
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #31781D

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

Preview Lab → · Contrast checker → · Palette generator →

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