#31791A#31791A

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

Color values

HEX#31791A
RGBrgb(49, 121, 26)
HSLhsl(105, 65%, 29%)
HSVhsv(105, 79%, 47%)
CMYKcmyk(59.5%, 0%, 78.5%, 52.5%)
CIE-LABlab(44.80, -40.34, 42.35)
CIE-LCHlch(44.80, 58.49, 133.61°)
OKLaboklab(51.08% -0.111 0.095)
OKLCHoklch(51.08% 0.146 139.4)
XYZxyz(8.2901, 14.4016, 3.3200)
Luminance0.1440 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31791A #621A79
analogous
#61791A #31791A #1A7933
triadic
#31791A #1A3179 #791A31
tetradic
#31791A #1A6179 #621A79 #79331A
square
#31791A #1A6179 #621A79 #79331A
split-complementary
#31791A #331A79 #791A61
monochromatic
#0A1905 #1D470F #31791A #45AB25 #5FD439

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31791A#FFFFFF#000000##FFFFFF
##31791A1.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)
#7D6E05
Deuteranopia (green-blind)
#746824
Tritanopia (blue-blind)
#297567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #31791a;
/* rgb */ color: rgb(49, 121, 26);
/* oklch */ color: oklch(51.1% 0.146 139.4);
Tailwind
colors: {
  custom: {
    50: '#72a05e',
    500: '#31791a',
    950: '#000000',
  },
}
SCSS
$custom: #31791a;
$custom-light: #72a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#31791a",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 105.474,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51083,
    "c": 0.14609,
    "h": 139.4
  },
  "luminance": 0.14402
}

Semantic roles & 50–950 ramp

primary
#31791A
secondary
#9341AD
accent
#40E8BF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090F05
muted
#7B7E79

Preview Lab

Preview with #31791A

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

Preview Lab → · Contrast checker → · Palette generator →

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