#31751A#31751A

#31751A is a mid, vivid green. Relative luminance 0.135; OKLCH L 50.0% C 0.141 H 139.2°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#31751A
RGBrgb(49, 117, 26)
HSLhsl(105, 64%, 28%)
HSVhsv(105, 78%, 46%)
CMYKcmyk(58.1%, 0%, 77.8%, 54.1%)
CIE-LABlab(43.43, -38.77, 41.00)
CIE-LCHlch(43.43, 56.42, 133.39°)
OKLaboklab(49.95% -0.1067 0.0922)
OKLCHoklch(49.95% 0.141 139.2)
XYZxyz(7.8140, 13.4495, 3.1613)
Luminance0.1345 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31751A #5E1A75
analogous
#5E751A #31751A #1A7530
triadic
#31751A #1A3175 #751A31
tetradic
#31751A #1A5E75 #5E1A75 #75301A
square
#31751A #1A5E75 #5E1A75 #75301A
split-complementary
#31751A #301A75 #751A5E
monochromatic
#0A1906 #1C430F #31751A #46A725 #5ED337

Accessibility & contrast

On white

5.69
#31751A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#31751A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #31751A
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31751A#FFFFFF#000000##FFFFFF
##31751A1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A07
Deuteranopia (green-blind)
#706424
Tritanopia (blue-blind)
#2A7164
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #31751a;
/* rgb */ color: rgb(49, 117, 26);
/* oklch */ color: oklch(50.0% 0.141 139.2);
Tailwind
colors: {
  custom: {
    50: '#719d5e',
    500: '#31751a',
    950: '#000000',
  },
}
SCSS
$custom: #31751a;
$custom-light: #719d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#31751a",
  "rgb": {
    "r": 49,
    "g": 117,
    "b": 26
  },
  "hsl": {
    "h": 104.835,
    "s": 63.636,
    "l": 28.039
  },
  "oklch": {
    "l": 0.49951,
    "c": 0.14101,
    "h": 139.2
  },
  "luminance": 0.1345
}

Semantic roles & 50–950 ramp

primary
#31751A
secondary
#8F41AA
accent
#41E7BD
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E05
muted
#7B7E79

Preview Lab

Preview with #31751A

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

Preview Lab → · Contrast checker → · Palette generator →

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