#31891B#31891B

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

Color values

HEX#31891B
RGBrgb(49, 137, 27)
HSLhsl(108, 67%, 32%)
HSVhsv(108, 80%, 54%)
CMYKcmyk(64.2%, 0%, 80.3%, 46.3%)
CIE-LABlab(50.24, -46.31, 47.27)
CIE-LCHlch(50.24, 66.17, 134.41°)
OKLaboklab(55.58% -0.127 0.1054)
OKLCHoklch(55.58% 0.165 140.3)
XYZxyz(10.4096, 18.6224, 4.0826)
Luminance0.1862 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31891B #731B89
analogous
#68891B #31891B #1B893C
triadic
#31891B #1B3189 #891B31
tetradic
#31891B #1B6889 #731B89 #893C1B
square
#31891B #1B6889 #731B89 #893C1B
split-complementary
#31891B #3C1B89 #891B68
monochromatic
#0C2307 #1F5611 #31891B #43BC25 #62DA44

Accessibility & contrast

On white

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

On black

4.72
#31891B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31891B
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31891B#FFFFFF#000000##000000
##31891B1.004.444.724.72
#FFFFFF4.441.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#827528
Tritanopia (blue-blind)
#248475
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #31891b;
/* rgb */ color: rgb(49, 137, 27);
/* oklch */ color: oklch(55.6% 0.165 140.3);
Tailwind
colors: {
  custom: {
    50: '#75ac61',
    500: '#31891b',
    950: '#000000',
  },
}
SCSS
$custom: #31891b;
$custom-light: #75ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#31891b",
  "rgb": {
    "r": 49,
    "g": 137,
    "b": 27
  },
  "hsl": {
    "h": 108,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.55581,
    "c": 0.16502,
    "h": 140.3
  },
  "luminance": 0.18623
}

Semantic roles & 50–950 ramp

primary
#31891B
secondary
#A444BC
accent
#3EEAC8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #31891B

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

Preview Lab → · Contrast checker → · Palette generator →

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