#178F31#178F31

#178F31 is a mid, vivid green. Relative luminance 0.200; OKLCH L 56.8% C 0.166 H 145.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#178F31
RGBrgb(23, 143, 49)
HSLhsl(133, 72%, 33%)
HSVhsv(133, 84%, 56%)
CMYKcmyk(83.9%, 0%, 65.7%, 43.9%)
CIE-LABlab(51.89, -50.99, 40.07)
CIE-LCHlch(51.89, 64.85, 141.84°)
OKLaboklab(56.85% -0.1373 0.0933)
OKLCHoklch(56.85% 0.166 145.8)
XYZxyz(10.7294, 20.0475, 6.2092)
Luminance0.2005 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178F31 #8F1775
analogous
#398F17 #178F31 #178F6D
triadic
#178F31 #31178F #8F3117
tetradic
#178F31 #17398F #8F1775 #8F6D17
square
#178F31 #17398F #8F1775 #8F6D17
split-complementary
#178F31 #6D178F #8F1739
monochromatic
#06260D #0F5A1F #178F31 #1FC443 #40E063

Accessibility & contrast

On white

4.19
#178F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#178F31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178F31
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178F31#FFFFFF#000000##000000
##178F311.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#918126
Deuteranopia (green-blind)
#847839
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #178f31;
/* rgb */ color: rgb(23, 143, 49);
/* oklch */ color: oklch(56.8% 0.166 145.8);
Tailwind
colors: {
  custom: {
    50: '#6cb16d',
    500: '#178f31',
    950: '#000000',
  },
}
SCSS
$custom: #178f31;
$custom-light: #6cb16d;
$custom-dark: #000000;
JSON
{
  "hex": "#178f31",
  "rgb": {
    "r": 23,
    "g": 143,
    "b": 49
  },
  "hsl": {
    "h": 133,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56845,
    "c": 0.16598,
    "h": 145.8
  },
  "luminance": 0.20049
}

Semantic roles & 50–950 ramp

primary
#178F31
secondary
#C141A5
accent
#39C8EF
background
#F7FBF6
surface
#EDF6EC
border
#C8D0C7
text
#081107
muted
#7B807A

Preview Lab

Preview with #178F31

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

Preview Lab → · Contrast checker → · Palette generator →

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