#31781E#31781E

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

Color values

HEX#31781E
RGBrgb(49, 120, 30)
HSLhsl(107, 60%, 29%)
HSVhsv(107, 75%, 47%)
CMYKcmyk(59.2%, 0%, 75%, 52.9%)
CIE-LABlab(44.49, -39.64, 40.51)
CIE-LCHlch(44.49, 56.67, 134.38°)
OKLaboklab(50.83% -0.1088 0.0917)
OKLCHoklch(50.83% 0.142 139.9)
XYZxyz(8.2171, 14.1789, 3.5318)
Luminance0.1418 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31781E #651E78
analogous
#5E781E #31781E #1E7838
triadic
#31781E #1E3178 #781E31
tetradic
#31781E #1E5E78 #651E78 #78381E
square
#31781E #1E5E78 #651E78 #78381E
split-complementary
#31781E #381E78 #781E5E
monochromatic
#0A1806 #1D4712 #31781E #45A92A #5FCF41

Accessibility & contrast

On white

5.47
#31781E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#31781E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31781E
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31781E#FFFFFF#000000##FFFFFF
##31781E1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31781e;
/* rgb */ color: rgb(49, 120, 30);
/* oklch */ color: oklch(50.8% 0.142 139.9);
Tailwind
colors: {
  custom: {
    50: '#72a060',
    500: '#31781e',
    950: '#000000',
  },
}
SCSS
$custom: #31781e;
$custom-light: #72a060;
$custom-dark: #000000;
JSON
{
  "hex": "#31781e",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 30
  },
  "hsl": {
    "h": 107.333,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.50831,
    "c": 0.14233,
    "h": 139.9
  },
  "luminance": 0.1418
}

Semantic roles & 50–950 ramp

primary
#31781E
secondary
#9646AC
accent
#45E3C2
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #31781E

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

Preview Lab → · Contrast checker → · Palette generator →

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