#178818#178818

#178818 is a mid, vivid green. Relative luminance 0.179; OKLCH L 54.6% C 0.174 H 142.8°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#178818
RGBrgb(23, 136, 24)
HSLhsl(121, 71%, 31%)
HSVhsv(121, 83%, 53%)
CMYKcmyk(83.1%, 0%, 82.4%, 46.7%)
CIE-LABlab(49.32, -50.97, 47.15)
CIE-LCHlch(49.32, 69.44, 137.23°)
OKLaboklab(54.65% -0.1383 0.1049)
OKLCHoklch(54.65% 0.174 142.8)
XYZxyz(9.3218, 17.8553, 3.8191)
Luminance0.1786 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178818 #881787
analogous
#4E8817 #178818 #178850
triadic
#178818 #181788 #881817
tetradic
#178818 #174E88 #881787 #885017
square
#178818 #174E88 #881787 #885017
split-complementary
#178818 #501788 #88174E
monochromatic
#051F06 #0E540F #178818 #20BC21 #3BDE3D

Accessibility & contrast

On white

4.59
#178818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#178818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #178818
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178818#FFFFFF#000000##FFFFFF
##1788181.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#008473
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #178818;
/* rgb */ color: rgb(23, 136, 24);
/* oklch */ color: oklch(54.6% 0.174 142.8);
Tailwind
colors: {
  custom: {
    50: '#6cac5f',
    500: '#178818',
    950: '#000000',
  },
}
SCSS
$custom: #178818;
$custom-light: #6cac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#178818",
  "rgb": {
    "r": 23,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 120.531,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54649,
    "c": 0.1736,
    "h": 142.8
  },
  "luminance": 0.17856
}

Semantic roles & 50–950 ramp

primary
#178818
secondary
#BC3FBB
accent
#3AECEE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #178818

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

Preview Lab → · Contrast checker → · Palette generator →

#178818 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva