#178F12#178F12

#178F12 is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.6% C 0.184 H 142.4°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#178F12
RGBrgb(23, 143, 18)
HSLhsl(118, 78%, 32%)
HSVhsv(118, 87%, 56%)
CMYKcmyk(83.9%, 0%, 87.4%, 43.9%)
CIE-LABlab(51.69, -53.51, 50.97)
CIE-LCHlch(51.69, 73.90, 136.39°)
OKLaboklab(56.61% -0.1454 0.1121)
OKLCHoklch(56.61% 0.184 142.4)
XYZxyz(10.2843, 19.8695, 3.8653)
Luminance0.1987 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#178F12 #8A128F
analogous
#568F12 #178F12 #128F4C
triadic
#178F12 #12178F #8F1217
tetradic
#178F12 #12568F #8A128F #8F4C12
square
#178F12 #12568F #8A128F #8F4C12
split-complementary
#178F12 #4C128F #8F1256
monochromatic
#062204 #0E590B #178F12 #20C519 #3DE636

Accessibility & contrast

On white

4.22
#178F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#178F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #178F12
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##178F12#FFFFFF#000000##000000
##178F121.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#867824
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #178f12;
/* rgb */ color: rgb(23, 143, 18);
/* oklch */ color: oklch(56.6% 0.184 142.4);
Tailwind
colors: {
  custom: {
    50: '#6eb15e',
    500: '#178f12',
    950: '#000000',
  },
}
SCSS
$custom: #178f12;
$custom-light: #6eb15e;
$custom-dark: #000000;
JSON
{
  "hex": "#178f12",
  "rgb": {
    "r": 23,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 117.6,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56613,
    "c": 0.1836,
    "h": 142.4
  },
  "luminance": 0.19871
}

Semantic roles & 50–950 ramp

primary
#178F12
secondary
#BE3AC3
accent
#34F4EC
background
#F7FBF5
surface
#EDF6EA
border
#C8D0C6
text
#091105
muted
#7B8079

Preview Lab

Preview with #178F12

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

Preview Lab → · Contrast checker → · Palette generator →

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