#31791C#31791C

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

Color values

HEX#31791C
RGBrgb(49, 121, 28)
HSLhsl(106, 62%, 29%)
HSVhsv(106, 77%, 47%)
CMYKcmyk(59.5%, 0%, 76.9%, 52.5%)
CIE-LABlab(44.82, -40.19, 41.62)
CIE-LCHlch(44.82, 57.86, 134.00°)
OKLaboklab(51.1% -0.1105 0.0938)
OKLCHoklch(51.1% 0.145 139.7)
XYZxyz(8.3132, 14.4108, 3.4419)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31791C #641C79
analogous
#60791C #31791C #1C7936
triadic
#31791C #1C3179 #791C31
tetradic
#31791C #1C6079 #641C79 #79361C
square
#31791C #1C6079 #641C79 #79361C
split-complementary
#31791C #361C79 #791C60
monochromatic
#0A1906 #1D4710 #31791C #45AB28 #5FD23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31791C#FFFFFF#000000##FFFFFF
##31791C1.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)
#7D6E0A
Deuteranopia (green-blind)
#746826
Tritanopia (blue-blind)
#297567
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #31791c;
/* rgb */ color: rgb(49, 121, 28);
/* oklch */ color: oklch(51.1% 0.145 139.7);
Tailwind
colors: {
  custom: {
    50: '#72a05f',
    500: '#31791c',
    950: '#000000',
  },
}
SCSS
$custom: #31791c;
$custom-light: #72a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#31791c",
  "rgb": {
    "r": 49,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 106.452,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51097,
    "c": 0.14488,
    "h": 139.7
  },
  "luminance": 0.14412
}

Semantic roles & 50–950 ramp

primary
#31791C
secondary
#9544AD
accent
#42E5C1
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#090F05
muted
#7B7E79

Preview Lab

Preview with #31791C

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

Preview Lab → · Contrast checker → · Palette generator →

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