#20731B#20731B

#20731B is a mid, vivid green. Relative luminance 0.126; OKLCH L 48.8% C 0.145 H 142.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#20731B
RGBrgb(32, 115, 27)
HSLhsl(117, 62%, 28%)
HSVhsv(117, 77%, 45%)
CMYKcmyk(72.2%, 0%, 76.5%, 54.9%)
CIE-LABlab(42.23, -42.16, 39.24)
CIE-LCHlch(42.23, 57.59, 137.05°)
OKLaboklab(48.81% -0.1147 0.0888)
OKLCHoklch(48.81% 0.145 142.3)
XYZxyz(6.9238, 12.6469, 3.1129)
Luminance0.1265 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#20731B #6E1B73
analogous
#4C731B #20731B #1B7342
triadic
#20731B #1B2073 #731B20
tetradic
#20731B #1B4C73 #6E1B73 #73421B
square
#20731B #1B4C73 #6E1B73 #73421B
split-complementary
#20731B #421B73 #731B4C
monochromatic
#071906 #12410F #20731B #2EA527 #41D038

Accessibility & contrast

On white

5.95
#20731B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#20731B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #20731B
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##20731B#FFFFFF#000000##FFFFFF
##20731B1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76680B
Deuteranopia (green-blind)
#6C6124
Tritanopia (blue-blind)
#0A6F62
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #20731b;
/* rgb */ color: rgb(32, 115, 27);
/* oklch */ color: oklch(48.8% 0.145 142.3);
Tailwind
colors: {
  custom: {
    50: '#699c5e',
    500: '#20731b',
    950: '#000000',
  },
}
SCSS
$custom: #20731b;
$custom-light: #699c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#20731b",
  "rgb": {
    "r": 32,
    "g": 115,
    "b": 27
  },
  "hsl": {
    "h": 116.591,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.48808,
    "c": 0.14507,
    "h": 142.3
  },
  "luminance": 0.12648
}

Semantic roles & 50–950 ramp

primary
#20731B
secondary
#A242A8
accent
#43E5DC
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070E05
muted
#7A7E79

Preview Lab

Preview with #20731B

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

Preview Lab → · Contrast checker → · Palette generator →

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