#31891F#31891F

#31891F is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.6% C 0.163 H 140.7°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#31891F
RGBrgb(49, 137, 31)
HSLhsl(110, 63%, 33%)
HSVhsv(110, 77%, 54%)
CMYKcmyk(64.2%, 0%, 77.4%, 46.3%)
CIE-LABlab(50.27, -46.03, 45.92)
CIE-LCHlch(50.27, 65.01, 135.07°)
OKLaboklab(55.61% -0.126 0.1032)
OKLCHoklch(55.61% 0.163 140.7)
XYZxyz(10.4591, 18.6422, 4.3432)
Luminance0.1864 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31891F #771F89
analogous
#66891F #31891F #1F8942
triadic
#31891F #1F3189 #891F31
tetradic
#31891F #1F6689 #771F89 #89421F
square
#31891F #1F6689 #771F89 #89421F
split-complementary
#31891F #421F89 #891F66
monochromatic
#0D2508 #1F5714 #31891F #43BB2A #63D64C

Accessibility & contrast

On white

4.44
#31891F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#31891F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31891F
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31891F#FFFFFF#000000##000000
##31891F1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C07
Deuteranopia (green-blind)
#82752B
Tritanopia (blue-blind)
#238475
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #31891f;
/* rgb */ color: rgb(49, 137, 31);
/* oklch */ color: oklch(55.6% 0.163 140.7);
Tailwind
colors: {
  custom: {
    50: '#75ac63',
    500: '#31891f',
    950: '#000000',
  },
}
SCSS
$custom: #31891f;
$custom-light: #75ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#31891f",
  "rgb": {
    "r": 49,
    "g": 137,
    "b": 31
  },
  "hsl": {
    "h": 109.811,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.55608,
    "c": 0.16286,
    "h": 140.7
  },
  "luminance": 0.18643
}

Semantic roles & 50–950 ramp

primary
#31891F
secondary
#A64BB9
accent
#42E6CA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #31891F

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

Preview Lab → · Contrast checker → · Palette generator →

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