#31791F#31791F

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

Color values

HEX#31791F
RGBrgb(49, 121, 31)
HSLhsl(108, 59%, 30%)
HSVhsv(108, 74%, 47%)
CMYKcmyk(59.5%, 0%, 74.4%, 52.5%)
CIE-LABlab(44.84, -39.95, 40.46)
CIE-LCHlch(44.84, 56.86, 134.64°)
OKLaboklab(51.12% -0.1096 0.0918)
OKLCHoklch(51.12% 0.143 140.1)
XYZxyz(8.3509, 14.4259, 3.6405)
Luminance0.1443 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31791F #671F79
analogous
#5E791F #31791F #1F793A
triadic
#31791F #1F3179 #791F31
tetradic
#31791F #1F5E79 #671F79 #793A1F
square
#31791F #1F5E79 #671F79 #793A1F
split-complementary
#31791F #3A1F79 #791F5E
monochromatic
#0A1806 #1D4813 #31791F #45AA2B #5FCF43

Accessibility & contrast

On white

5.40
#31791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#31791F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31791F
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31791F#FFFFFF#000000##FFFFFF
##31791F1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31791f;
/* rgb */ color: rgb(49, 121, 31);
/* oklch */ color: oklch(51.1% 0.143 140.1);
Tailwind
colors: {
  custom: {
    50: '#72a061',
    500: '#31791f',
    950: '#000000',
  },
}
SCSS
$custom: #31791f;
$custom-light: #72a061;
$custom-dark: #000000;
JSON
{
  "hex": "#31791f",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 108,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51122,
    "c": 0.14295,
    "h": 140.1
  },
  "luminance": 0.14427
}

Semantic roles & 50–950 ramp

primary
#31791F
secondary
#9847AC
accent
#45E2C3
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #31791F

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

Preview Lab → · Contrast checker → · Palette generator →

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