#31781A#31781A

#31781A is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.145 H 139.4°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#31781A
RGBrgb(49, 120, 26)
HSLhsl(105, 64%, 29%)
HSVhsv(105, 78%, 47%)
CMYKcmyk(59.2%, 0%, 78.3%, 52.9%)
CIE-LABlab(44.46, -39.95, 42.02)
CIE-LCHlch(44.46, 57.98, 133.56°)
OKLaboklab(50.8% -0.1099 0.0943)
OKLCHoklch(50.8% 0.145 139.4)
XYZxyz(8.1692, 14.1598, 3.2797)
Luminance0.1416 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31781A #611A78
analogous
#60781A #31781A #1A7832
triadic
#31781A #1A3178 #781A31
tetradic
#31781A #1A6078 #611A78 #78321A
square
#31781A #1A6078 #611A78 #78321A
split-complementary
#31781A #321A78 #781A60
monochromatic
#0A1905 #1C460F #31781A #46AA25 #5ED438

Accessibility & contrast

On white

5.48
#31781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#31781A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31781A
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31781A#FFFFFF#000000##FFFFFF
##31781A1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D06
Deuteranopia (green-blind)
#736724
Tritanopia (blue-blind)
#297466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #31781a;
/* rgb */ color: rgb(49, 120, 26);
/* oklch */ color: oklch(50.8% 0.145 139.4);
Tailwind
colors: {
  custom: {
    50: '#72a05e',
    500: '#31781a',
    950: '#000000',
  },
}
SCSS
$custom: #31781a;
$custom-light: #72a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#31781a",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 105.319,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.508,
    "c": 0.14482,
    "h": 139.4
  },
  "luminance": 0.1416
}

Semantic roles & 50–950 ramp

primary
#31781A
secondary
#9241AC
accent
#40E7BF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #31781A

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

Preview Lab → · Contrast checker → · Palette generator →

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