#178A21#178A21

#178A21 is a mid, vivid green. Relative luminance 0.185; OKLCH L 55.3% C 0.171 H 143.7°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#178A21
RGBrgb(23, 138, 33)
HSLhsl(125, 71%, 32%)
HSVhsv(125, 83%, 54%)
CMYKcmyk(83.3%, 0%, 76.1%, 45.9%)
CIE-LABlab(50.06, -50.95, 44.79)
CIE-LCHlch(50.06, 67.84, 138.68°)
OKLaboklab(55.28% -0.1378 0.1013)
OKLCHoklch(55.28% 0.171 143.7)
XYZxyz(9.7157, 18.4677, 4.4911)
Luminance0.1847 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178A21 #8A1780
analogous
#478A17 #178A21 #178A5B
triadic
#178A21 #21178A #8A2117
tetradic
#178A21 #17478A #8A1780 #8A5B17
square
#178A21 #17478A #8A1780 #8A5B17
split-complementary
#178A21 #5B178A #8A1747
monochromatic
#062108 #0E5614 #178A21 #20BE2E #3DDF4B

Accessibility & contrast

On white

4.47
#178A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#178A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178A21
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178A21#FFFFFF#000000##000000
##178A211.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C0C
Deuteranopia (green-blind)
#81742C
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #178a21;
/* rgb */ color: rgb(23, 138, 33);
/* oklch */ color: oklch(55.3% 0.171 143.7);
Tailwind
colors: {
  custom: {
    50: '#6cad64',
    500: '#178a21',
    950: '#000000',
  },
}
SCSS
$custom: #178a21;
$custom-light: #6cad64;
$custom-dark: #000000;
JSON
{
  "hex": "#178a21",
  "rgb": {
    "r": 23,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 125.217,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5528,
    "c": 0.17106,
    "h": 143.7
  },
  "luminance": 0.18469
}

Semantic roles & 50–950 ramp

primary
#178A21
secondary
#BE3FB3
accent
#3ADEEE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #178A21

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

Preview Lab → · Contrast checker → · Palette generator →

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