#178E21#178E21

#178E21 is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.4% C 0.176 H 143.6°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#178E21
RGBrgb(23, 142, 33)
HSLhsl(125, 72%, 32%)
HSVhsv(125, 84%, 56%)
CMYKcmyk(83.8%, 0%, 76.8%, 44.3%)
CIE-LABlab(51.42, -52.24, 46.16)
CIE-LCHlch(51.42, 69.71, 138.54°)
OKLaboklab(56.42% -0.1414 0.1041)
OKLCHoklch(56.42% 0.176 143.6)
XYZxyz(10.3002, 19.6367, 4.6860)
Luminance0.1964 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178E21 #8E1784
analogous
#498E17 #178E21 #178E5D
triadic
#178E21 #21178E #8E2117
tetradic
#178E21 #17498E #8E1784 #8E5D17
square
#178E21 #17498E #8E1784 #8E5D17
split-complementary
#178E21 #5D178E #8E1749
monochromatic
#062509 #0E5915 #178E21 #20C32D #3FE04D

Accessibility & contrast

On white

4.26
#178E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#178E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178E21
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178E21#FFFFFF#000000##000000
##178E211.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800A
Deuteranopia (green-blind)
#84772D
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #178e21;
/* rgb */ color: rgb(23, 142, 33);
/* oklch */ color: oklch(56.4% 0.176 143.6);
Tailwind
colors: {
  custom: {
    50: '#6db064',
    500: '#178e21',
    950: '#000000',
  },
}
SCSS
$custom: #178e21;
$custom-light: #6db064;
$custom-dark: #000000;
JSON
{
  "hex": "#178e21",
  "rgb": {
    "r": 23,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 125.042,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56416,
    "c": 0.17557,
    "h": 143.6
  },
  "luminance": 0.19638
}

Semantic roles & 50–950 ramp

primary
#178E21
secondary
#C040B6
accent
#39E0EF
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081106
muted
#7B807A

Preview Lab

Preview with #178E21

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

Preview Lab → · Contrast checker → · Palette generator →

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