#178F28#178F28

#178F28 is a mid, vivid green. Relative luminance 0.200; OKLCH L 56.8% C 0.172 H 144.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#178F28
RGBrgb(23, 143, 40)
HSLhsl(129, 72%, 33%)
HSVhsv(129, 84%, 56%)
CMYKcmyk(83.9%, 0%, 72%, 43.9%)
CIE-LABlab(51.81, -51.94, 43.86)
CIE-LCHlch(51.81, 67.99, 139.82°)
OKLaboklab(56.76% -0.1403 0.1003)
OKLCHoklch(56.76% 0.172 144.4)
XYZxyz(10.5581, 19.9790, 5.3070)
Luminance0.1998 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178F28 #8F177E
analogous
#428F17 #178F28 #178F64
triadic
#178F28 #28178F #8F2817
tetradic
#178F28 #17428F #8F177E #8F6417
square
#178F28 #17428F #8F177E #8F6417
split-complementary
#178F28 #64178F #8F1742
monochromatic
#06260B #0F5A19 #178F28 #1FC437 #40E057

Accessibility & contrast

On white

4.20
#178F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#178F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178F28
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178F28#FFFFFF#000000##000000
##178F281.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928118
Deuteranopia (green-blind)
#857832
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #178f28;
/* rgb */ color: rgb(23, 143, 40);
/* oklch */ color: oklch(56.8% 0.172 144.4);
Tailwind
colors: {
  custom: {
    50: '#6db168',
    500: '#178f28',
    950: '#000000',
  },
}
SCSS
$custom: #178f28;
$custom-light: #6db168;
$custom-dark: #000000;
JSON
{
  "hex": "#178f28",
  "rgb": {
    "r": 23,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 128.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56756,
    "c": 0.1724,
    "h": 144.4
  },
  "luminance": 0.1998
}

Semantic roles & 50–950 ramp

primary
#178F28
secondary
#C141AF
accent
#39D5EF
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081106
muted
#7B807A

Preview Lab

Preview with #178F28

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

Preview Lab → · Contrast checker → · Palette generator →

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