#178B21#178B21

#178B21 is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.6% C 0.172 H 143.7°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#178B21
RGBrgb(23, 139, 33)
HSLhsl(125, 72%, 32%)
HSVhsv(125, 83%, 55%)
CMYKcmyk(83.5%, 0%, 76.3%, 45.5%)
CIE-LABlab(50.40, -51.27, 45.14)
CIE-LCHlch(50.40, 68.31, 138.64°)
OKLaboklab(55.57% -0.1387 0.102)
OKLCHoklch(55.57% 0.172 143.7)
XYZxyz(9.8598, 18.7560, 4.5392)
Luminance0.1876 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178B21 #8B1781
analogous
#478B17 #178B21 #178B5B
triadic
#178B21 #21178B #8B2117
tetradic
#178B21 #17478B #8B1781 #8B5B17
square
#178B21 #17478B #8B1781 #8B5B17
split-complementary
#178B21 #5B178B #8B1747
monochromatic
#062208 #0E5615 #178B21 #20C02D #3DDF4B

Accessibility & contrast

On white

4.42
#178B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#178B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178B21
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178B21#FFFFFF#000000##000000
##178B211.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0C
Deuteranopia (green-blind)
#82752D
Tritanopia (blue-blind)
#008777
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #178b21;
/* rgb */ color: rgb(23, 139, 33);
/* oklch */ color: oklch(55.6% 0.172 143.7);
Tailwind
colors: {
  custom: {
    50: '#6cae64',
    500: '#178b21',
    950: '#000000',
  },
}
SCSS
$custom: #178b21;
$custom-light: #6cae64;
$custom-dark: #000000;
JSON
{
  "hex": "#178b21",
  "rgb": {
    "r": 23,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 125.172,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55565,
    "c": 0.17219,
    "h": 143.7
  },
  "luminance": 0.18757
}

Semantic roles & 50–950 ramp

primary
#178B21
secondary
#BF3FB4
accent
#39DFEE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #178B21

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

Preview Lab → · Contrast checker → · Palette generator →

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