#31783A#31783A

#31783A is a mid, moderate green. Relative luminance 0.144; OKLCH L 51.2% C 0.119 H 146.0°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#31783A
RGBrgb(49, 120, 58)
HSLhsl(128, 42%, 33%)
HSVhsv(128, 59%, 47%)
CMYKcmyk(59.2%, 0%, 51.7%, 52.9%)
CIE-LABlab(44.79, -36.28, 27.37)
CIE-LCHlch(44.79, 45.45, 142.97°)
OKLaboklab(51.18% -0.0983 0.0663)
OKLCHoklch(51.18% 0.119 146)
XYZxyz(8.7463, 14.3906, 6.3189)
Luminance0.1439 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31783A #78316F
analogous
#4B7831 #31783A #31785D
triadic
#31783A #3A3178 #783A31
tetradic
#31783A #314B78 #78316F #785D31
square
#31783A #314B78 #78316F #785D31
split-complementary
#31783A #5D3178 #78314B
monochromatic
#0E2110 #1F4D25 #31783A #43A34F #64C06F

Accessibility & contrast

On white

5.41
#31783A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#31783A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31783A
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31783A#FFFFFF#000000##FFFFFF
##31783A1.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)
#7A6E35
Deuteranopia (green-blind)
#70673E
Tritanopia (blue-blind)
#23756A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #31783a;
/* rgb */ color: rgb(49, 120, 58);
/* oklch */ color: oklch(51.2% 0.119 146.0);
Tailwind
colors: {
  custom: {
    50: '#70a071',
    500: '#31783a',
    950: '#000000',
  },
}
SCSS
$custom: #31783a;
$custom-light: #70a071;
$custom-dark: #000000;
JSON
{
  "hex": "#31783a",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 58
  },
  "hsl": {
    "h": 127.606,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.51175,
    "c": 0.11854,
    "h": 146
  },
  "luminance": 0.14391
}

Semantic roles & 50–950 ramp

primary
#31783A
secondary
#A75E9E
accent
#56C2D2
background
#F7F9F6
surface
#EDF2EC
border
#C8CCC7
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #31783A

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

Preview Lab → · Contrast checker → · Palette generator →

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