#178D31#178D31

#178D31 is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.3% C 0.164 H 145.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#178D31
RGBrgb(23, 141, 49)
HSLhsl(133, 72%, 32%)
HSVhsv(133, 84%, 55%)
CMYKcmyk(83.7%, 0%, 65.2%, 44.7%)
CIE-LABlab(51.21, -50.32, 39.31)
CIE-LCHlch(51.21, 63.85, 142.00°)
OKLaboklab(56.28% -0.1354 0.0917)
OKLCHoklch(56.28% 0.164 145.9)
XYZxyz(10.4318, 19.4524, 6.1100)
Luminance0.1945 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178D31 #8D1773
analogous
#388D17 #178D31 #178D6C
triadic
#178D31 #31178D #8D3117
tetradic
#178D31 #17388D #8D1773 #8D6C17
square
#178D31 #17388D #8D1773 #8D6C17
split-complementary
#178D31 #6C178D #8D1738
monochromatic
#06240C #0E581F #178D31 #20C243 #3FE062

Accessibility & contrast

On white

4.29
#178D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#178D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178D31
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178D31#FFFFFF#000000##000000
##178D311.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7F26
Deuteranopia (green-blind)
#837739
Tritanopia (blue-blind)
#00897A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #178d31;
/* rgb */ color: rgb(23, 141, 49);
/* oklch */ color: oklch(56.3% 0.164 145.9);
Tailwind
colors: {
  custom: {
    50: '#6caf6d',
    500: '#178d31',
    950: '#000000',
  },
}
SCSS
$custom: #178d31;
$custom-light: #6caf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#178d31",
  "rgb": {
    "r": 23,
    "g": 141,
    "b": 49
  },
  "hsl": {
    "h": 133.22,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56281,
    "c": 0.16357,
    "h": 145.9
  },
  "luminance": 0.19454
}

Semantic roles & 50–950 ramp

primary
#178D31
secondary
#C040A4
accent
#39C7EF
background
#F7FAF6
surface
#EDF5EC
border
#C8CFC7
text
#081107
muted
#7B807A

Preview Lab

Preview with #178D31

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

Preview Lab → · Contrast checker → · Palette generator →

#178D31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva