#31782E#31782E

#31782E is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.130 H 142.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#31782E
RGBrgb(49, 120, 46)
HSLhsl(118, 45%, 33%)
HSVhsv(118, 62%, 47%)
CMYKcmyk(59.2%, 0%, 61.7%, 52.9%)
CIE-LABlab(44.64, -37.98, 33.43)
CIE-LCHlch(44.64, 50.59, 138.64°)
OKLaboklab(51% -0.1033 0.0787)
OKLCHoklch(51% 0.13 142.7)
XYZxyz(8.4758, 14.2824, 4.8944)
Luminance0.1428 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31782E #752E78
analogous
#56782E #31782E #2E7850
triadic
#31782E #2E3178 #782E31
tetradic
#31782E #2E5678 #752E78 #78502E
square
#31782E #2E5678 #752E78 #78502E
split-complementary
#31782E #502E78 #782E56
monochromatic
#0D200C #1F4C1D #31782E #43A43F #63C25F

Accessibility & contrast

On white

5.45
#31782E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#31782E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31782E
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31782E#FFFFFF#000000##FFFFFF
##31782E1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D26
Deuteranopia (green-blind)
#726734
Tritanopia (blue-blind)
#267568
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #31782e;
/* rgb */ color: rgb(49, 120, 46);
/* oklch */ color: oklch(51.0% 0.130 142.7);
Tailwind
colors: {
  custom: {
    50: '#71a069',
    500: '#31782e',
    950: '#000000',
  },
}
SCSS
$custom: #31782e;
$custom-light: #71a069;
$custom-dark: #000000;
JSON
{
  "hex": "#31782e",
  "rgb": {
    "r": 49,
    "g": 120,
    "b": 46
  },
  "hsl": {
    "h": 117.568,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.50999,
    "c": 0.1299,
    "h": 142.7
  },
  "luminance": 0.14283
}

Semantic roles & 50–950 ramp

primary
#31782E
secondary
#A55AA8
accent
#54D4CF
background
#F7F9F6
surface
#EDF2EB
border
#C8CCC6
text
#080F06
muted
#7B7E7A

Preview Lab

Preview with #31782E

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

Preview Lab → · Contrast checker → · Palette generator →

#31782E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva