#178F40#178F40

#178F40 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.0% C 0.153 H 148.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#178F40
RGBrgb(23, 143, 64)
HSLhsl(141, 72%, 33%)
HSVhsv(141, 84%, 56%)
CMYKcmyk(83.9%, 0%, 55.2%, 43.9%)
CIE-LABlab(52.06, -48.95, 33.01)
CIE-LCHlch(52.06, 59.04, 146.01°)
OKLaboklab(57.04% -0.1314 0.0793)
OKLCHoklch(57.04% 0.153 148.9)
XYZxyz(11.1003, 20.1959, 8.1627)
Luminance0.2020 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178F40 #8F1766
analogous
#2A8F17 #178F40 #178F7C
triadic
#178F40 #40178F #8F4017
tetradic
#178F40 #172A8F #8F1766 #8F7C17
square
#178F40 #172A8F #8F1766 #8F7C17
split-complementary
#178F40 #7C178F #8F172A
monochromatic
#062611 #0F5A28 #178F40 #1FC458 #40E077

Accessibility & contrast

On white

4.17
#178F40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#178F40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178F40
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178F40#FFFFFF#000000##000000
##178F401.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#908239
Deuteranopia (green-blind)
#837946
Tritanopia (blue-blind)
#008C7D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #178f40;
/* rgb */ color: rgb(23, 143, 64);
/* oklch */ color: oklch(57.0% 0.153 148.9);
Tailwind
colors: {
  custom: {
    50: '#6cb177',
    500: '#178f40',
    950: '#000000',
  },
}
SCSS
$custom: #178f40;
$custom-light: #6cb177;
$custom-dark: #000000;
JSON
{
  "hex": "#178f40",
  "rgb": {
    "r": 23,
    "g": 143,
    "b": 64
  },
  "hsl": {
    "h": 140.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57038,
    "c": 0.15344,
    "h": 148.9
  },
  "luminance": 0.20197
}

Semantic roles & 50–950 ramp

primary
#178F40
secondary
#C14195
accent
#39B1EF
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#081109
muted
#7B807B

Preview Lab

Preview with #178F40

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

Preview Lab → · Contrast checker → · Palette generator →

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