#31591A#31591A

#31591A is a dark, moderate yellow-green. Relative luminance 0.079; OKLCH L 42.0% C 0.103 H 136.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#31591A
RGBrgb(49, 89, 26)
HSLhsl(98, 55%, 23%)
HSVhsv(98, 71%, 35%)
CMYKcmyk(44.9%, 0%, 70.8%, 65.1%)
CIE-LABlab(33.71, -26.63, 30.98)
CIE-LCHlch(33.71, 40.85, 130.68°)
OKLaboklab(41.96% -0.0739 0.0712)
OKLCHoklch(41.96% 0.103 136.1)
XYZxyz(5.0253, 7.8720, 2.2317)
Luminance0.0787 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31591A #421A59
analogous
#51591A #31591A #1A5922
triadic
#31591A #1A3159 #591A31
tetradic
#31591A #1A5159 #421A59 #59221A
square
#31591A #1A5159 #421A59 #59221A
split-complementary
#31591A #221A59 #591A51
monochromatic
#0D1807 #172A0C #31591A #4B8828 #65B836

Accessibility & contrast

On white

8.16
#31591A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#31591A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31591A
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31591A#FFFFFF#000000##FFFFFF
##31591A1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5112
Deuteranopia (green-blind)
#574E1F
Tritanopia (blue-blind)
#30564C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #31591a;
/* rgb */ color: rgb(49, 89, 26);
/* oklch */ color: oklch(42.0% 0.103 136.1);
Tailwind
colors: {
  custom: {
    50: '#6d885a',
    500: '#31591a',
    950: '#000000',
  },
}
SCSS
$custom: #31591a;
$custom-light: #6d885a;
$custom-dark: #000000;
JSON
{
  "hex": "#31591a",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 26
  },
  "hsl": {
    "h": 98.095,
    "s": 54.783,
    "l": 22.549
  },
  "oklch": {
    "l": 0.41962,
    "c": 0.10259,
    "h": 136.1
  },
  "luminance": 0.07872
}

Semantic roles & 50–950 ramp

primary
#31591A
secondary
#72408F
accent
#4ADEA8
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #31591A

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

Preview Lab → · Contrast checker → · Palette generator →

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