#31781F#31781F

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

Color values

HEX#31781F
RGBrgb(49, 120, 31)
HSLhsl(108, 59%, 30%)
HSVhsv(108, 74%, 47%)
CMYKcmyk(59.2%, 0%, 74.2%, 52.9%)
CIE-LABlab(44.50, -39.55, 40.11)
CIE-LCHlch(44.50, 56.33, 134.60°)
OKLaboklab(50.84% -0.1085 0.091)
OKLCHoklch(50.84% 0.142 140)
XYZxyz(8.2301, 14.1841, 3.6002)
Luminance0.1419 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31781F #661F78
analogous
#5E781F #31781F #1F783A
triadic
#31781F #1F3178 #781F31
tetradic
#31781F #1F5E78 #661F78 #783A1F
square
#31781F #1F5E78 #661F78 #783A1F
split-complementary
#31781F #3A1F78 #781F5E
monochromatic
#0A1806 #1D4712 #31781F #45A92C #5FCE43

Accessibility & contrast

On white

5.47
#31781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#31781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31781F
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31781F#FFFFFF#000000##FFFFFF
##31781F1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31781f;
/* rgb */ color: rgb(49, 120, 31);
/* oklch */ color: oklch(50.8% 0.142 140.0);
Tailwind
colors: {
  custom: {
    50: '#72a060',
    500: '#31781f',
    950: '#000000',
  },
}
SCSS
$custom: #31781f;
$custom-light: #72a060;
$custom-dark: #000000;
JSON
{
  "hex": "#31781f",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 107.865,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5084,
    "c": 0.14167,
    "h": 140
  },
  "luminance": 0.14185
}

Semantic roles & 50–950 ramp

primary
#31781F
secondary
#9747AB
accent
#46E2C2
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #31781F

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

Preview Lab → · Contrast checker → · Palette generator →

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