#31791D#31791D

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

Color values

HEX#31791D
RGBrgb(49, 121, 29)
HSLhsl(107, 61%, 29%)
HSVhsv(107, 76%, 47%)
CMYKcmyk(59.5%, 0%, 76%, 52.5%)
CIE-LABlab(44.82, -40.12, 41.24)
CIE-LCHlch(44.82, 57.53, 134.21°)
OKLaboklab(51.11% -0.1102 0.0931)
OKLCHoklch(51.11% 0.144 139.8)
XYZxyz(8.3254, 14.4157, 3.5059)
Luminance0.1442 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31791D #651D79
analogous
#5F791D #31791D #1D7937
triadic
#31791D #1D3179 #791D31
tetradic
#31791D #1D5F79 #651D79 #79371D
square
#31791D #1D5F79 #651D79 #79371D
split-complementary
#31791D #371D79 #791D5F
monochromatic
#0A1906 #1D4811 #31791D #45AA29 #5FD13F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31791D#FFFFFF#000000##FFFFFF
##31791D1.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)
#7D6E0C
Deuteranopia (green-blind)
#736826
Tritanopia (blue-blind)
#287567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #31791d;
/* rgb */ color: rgb(49, 121, 29);
/* oklch */ color: oklch(51.1% 0.144 139.8);
Tailwind
colors: {
  custom: {
    50: '#72a060',
    500: '#31791d',
    950: '#000000',
  },
}
SCSS
$custom: #31791d;
$custom-light: #72a060;
$custom-dark: #000000;
JSON
{
  "hex": "#31791d",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 29
  },
  "hsl": {
    "h": 106.957,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51105,
    "c": 0.14425,
    "h": 139.8
  },
  "luminance": 0.14416
}

Semantic roles & 50–950 ramp

primary
#31791D
secondary
#9645AD
accent
#43E4C1
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#090F05
muted
#7B7E79

Preview Lab

Preview with #31791D

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

Preview Lab → · Contrast checker → · Palette generator →

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