#31791E#31791E

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

Color values

HEX#31791E
RGBrgb(49, 121, 30)
HSLhsl(107, 60%, 30%)
HSVhsv(107, 75%, 47%)
CMYKcmyk(59.5%, 0%, 75.2%, 52.5%)
CIE-LABlab(44.83, -40.03, 40.85)
CIE-LCHlch(44.83, 57.20, 134.42°)
OKLaboklab(51.11% -0.1099 0.0925)
OKLCHoklch(51.11% 0.144 139.9)
XYZxyz(8.3380, 14.4207, 3.5721)
Luminance0.1442 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31791E #661E79
analogous
#5E791E #31791E #1E7939
triadic
#31791E #1E3179 #791E31
tetradic
#31791E #1E5E79 #661E79 #79391E
square
#31791E #1E5E79 #661E79 #79391E
split-complementary
#31791E #391E79 #791E5E
monochromatic
#0A1906 #1D4812 #31791E #45AA2A #5FD041

Accessibility & contrast

On white

5.41
#31791E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#31791E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31791E
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31791E#FFFFFF#000000##FFFFFF
##31791E1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E0E
Deuteranopia (green-blind)
#736827
Tritanopia (blue-blind)
#287567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #31791e;
/* rgb */ color: rgb(49, 121, 30);
/* oklch */ color: oklch(51.1% 0.144 139.9);
Tailwind
colors: {
  custom: {
    50: '#72a060',
    500: '#31791e',
    950: '#000000',
  },
}
SCSS
$custom: #31791e;
$custom-light: #72a060;
$custom-dark: #000000;
JSON
{
  "hex": "#31791e",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 30
  },
  "hsl": {
    "h": 107.473,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.51113,
    "c": 0.14361,
    "h": 139.9
  },
  "luminance": 0.14421
}

Semantic roles & 50–950 ramp

primary
#31791E
secondary
#9746AD
accent
#44E3C2
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #31791E

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

Preview Lab → · Contrast checker → · Palette generator →

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