#178F21#178F21

#178F21 is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.7% C 0.177 H 143.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#178F21
RGBrgb(23, 143, 33)
HSLhsl(125, 72%, 33%)
HSVhsv(125, 84%, 56%)
CMYKcmyk(83.9%, 0%, 76.9%, 43.9%)
CIE-LABlab(51.76, -52.56, 46.50)
CIE-LCHlch(51.76, 70.18, 138.50°)
OKLaboklab(56.7% -0.1422 0.1048)
OKLCHoklch(56.7% 0.177 143.6)
XYZxyz(10.4496, 19.9356, 4.7358)
Luminance0.1994 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178F21 #8F1785
analogous
#498F17 #178F21 #178F5D
triadic
#178F21 #21178F #8F2117
tetradic
#178F21 #17498F #8F1785 #8F5D17
square
#178F21 #17498F #8F1785 #8F5D17
split-complementary
#178F21 #5D178F #8F1749
monochromatic
#062609 #0F5A15 #178F21 #1FC42D #40E04D

Accessibility & contrast

On white

4.21
#178F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#178F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178F21
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178F21#FFFFFF#000000##000000
##178F211.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928109
Deuteranopia (green-blind)
#85782D
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #178f21;
/* rgb */ color: rgb(23, 143, 33);
/* oklch */ color: oklch(56.7% 0.177 143.6);
Tailwind
colors: {
  custom: {
    50: '#6db164',
    500: '#178f21',
    950: '#000000',
  },
}
SCSS
$custom: #178f21;
$custom-light: #6db164;
$custom-dark: #000000;
JSON
{
  "hex": "#178f21",
  "rgb": {
    "r": 23,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 125,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.567,
    "c": 0.17669,
    "h": 143.6
  },
  "luminance": 0.19937
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #178F21

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

Preview Lab → · Contrast checker → · Palette generator →

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