#31791B#31791B

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

Color values

HEX#31791B
RGBrgb(49, 121, 27)
HSLhsl(106, 64%, 29%)
HSVhsv(106, 78%, 47%)
CMYKcmyk(59.5%, 0%, 77.7%, 52.5%)
CIE-LABlab(44.81, -40.27, 41.99)
CIE-LCHlch(44.81, 58.18, 133.80°)
OKLaboklab(51.09% -0.1107 0.0944)
OKLCHoklch(51.09% 0.145 139.6)
XYZxyz(8.3015, 14.4061, 3.3799)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31791B #631B79
analogous
#60791B #31791B #1B7934
triadic
#31791B #1B3179 #791B31
tetradic
#31791B #1B6079 #631B79 #79341B
square
#31791B #1B6079 #631B79 #79341B
split-complementary
#31791B #341B79 #791B60
monochromatic
#0A1906 #1D4710 #31791B #45AB26 #5FD33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31791B#FFFFFF#000000##FFFFFF
##31791B1.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)
#7D6E07
Deuteranopia (green-blind)
#746825
Tritanopia (blue-blind)
#297567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #31791b;
/* rgb */ color: rgb(49, 121, 27);
/* oklch */ color: oklch(51.1% 0.145 139.6);
Tailwind
colors: {
  custom: {
    50: '#72a05f',
    500: '#31791b',
    950: '#000000',
  },
}
SCSS
$custom: #31791b;
$custom-light: #72a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#31791b",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 105.957,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5109,
    "c": 0.14549,
    "h": 139.6
  },
  "luminance": 0.14407
}

Semantic roles & 50–950 ramp

primary
#31791B
secondary
#9443AD
accent
#41E7C0
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090F05
muted
#7B7E79

Preview Lab

Preview with #31791B

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

Preview Lab → · Contrast checker → · Palette generator →

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