#178C21#178C21

#178C21 is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.8% C 0.173 H 143.7°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#178C21
RGBrgb(23, 140, 33)
HSLhsl(125, 72%, 32%)
HSVhsv(125, 84%, 55%)
CMYKcmyk(83.6%, 0%, 76.4%, 45.1%)
CIE-LABlab(50.74, -51.60, 45.48)
CIE-LCHlch(50.74, 68.78, 138.61°)
OKLaboklab(55.85% -0.1396 0.1027)
OKLCHoklch(55.85% 0.173 143.7)
XYZxyz(10.0053, 19.0469, 4.5877)
Luminance0.1905 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178C21 #8C1782
analogous
#488C17 #178C21 #178C5C
triadic
#178C21 #21178C #8C2117
tetradic
#178C21 #17488C #8C1782 #8C5C17
square
#178C21 #17488C #8C1782 #8C5C17
split-complementary
#178C21 #5C178C #8C1748
monochromatic
#062308 #0E5715 #178C21 #20C12D #3EDF4C

Accessibility & contrast

On white

4.37
#178C21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#178C21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178C21
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178C21#FFFFFF#000000##000000
##178C211.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E0B
Deuteranopia (green-blind)
#83752D
Tritanopia (blue-blind)
#008877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #178c21;
/* rgb */ color: rgb(23, 140, 33);
/* oklch */ color: oklch(55.8% 0.173 143.7);
Tailwind
colors: {
  custom: {
    50: '#6caf64',
    500: '#178c21',
    950: '#000000',
  },
}
SCSS
$custom: #178c21;
$custom-light: #6caf64;
$custom-dark: #000000;
JSON
{
  "hex": "#178c21",
  "rgb": {
    "r": 23,
    "g": 140,
    "b": 33
  },
  "hsl": {
    "h": 125.128,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55849,
    "c": 0.17332,
    "h": 143.7
  },
  "luminance": 0.19048
}

Semantic roles & 50–950 ramp

primary
#178C21
secondary
#BF3FB4
accent
#39DFEF
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #178C21

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

Preview Lab → · Contrast checker → · Palette generator →

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