#178F1F#178F1F

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

Color values

HEX#178F1F
RGBrgb(23, 143, 31)
HSLhsl(124, 72%, 33%)
HSVhsv(124, 84%, 56%)
CMYKcmyk(83.9%, 0%, 78.3%, 43.9%)
CIE-LABlab(51.75, -52.71, 47.19)
CIE-LCHlch(51.75, 70.75, 138.16°)
OKLaboklab(56.68% -0.1427 0.106)
OKLCHoklch(56.68% 0.178 143.4)
XYZxyz(10.4224, 19.9247, 4.5926)
Luminance0.1993 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178F1F #8F1787
analogous
#4B8F17 #178F1F #178F5B
triadic
#178F1F #1F178F #8F1F17
tetradic
#178F1F #174B8F #8F1787 #8F5B17
square
#178F1F #174B8F #8F1787 #8F5B17
split-complementary
#178F1F #5B178F #8F174B
monochromatic
#062608 #0F5A14 #178F1F #1FC42A #40E04B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##178F1F#FFFFFF#000000##000000
##178F1F1.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)
#928104
Deuteranopia (green-blind)
#85782C
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #178f1f;
/* rgb */ color: rgb(23, 143, 31);
/* oklch */ color: oklch(56.7% 0.178 143.4);
Tailwind
colors: {
  custom: {
    50: '#6db163',
    500: '#178f1f',
    950: '#000000',
  },
}
SCSS
$custom: #178f1f;
$custom-light: #6db163;
$custom-dark: #000000;
JSON
{
  "hex": "#178f1f",
  "rgb": {
    "r": 23,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 124,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56685,
    "c": 0.1778,
    "h": 143.4
  },
  "luminance": 0.19926
}

Semantic roles & 50–950 ramp

primary
#178F1F
secondary
#C141B8
accent
#39E3EF
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081106
muted
#7B807A

Preview Lab

Preview with #178F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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