#17871C#17871C

#17871C is a mid, vivid green. Relative luminance 0.176; OKLCH L 54.4% C 0.170 H 143.2°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#17871C
RGBrgb(23, 135, 28)
HSLhsl(123, 71%, 31%)
HSVhsv(123, 83%, 53%)
CMYKcmyk(83%, 0%, 79.3%, 47.1%)
CIE-LABlab(49.00, -50.37, 45.54)
CIE-LCHlch(49.00, 67.91, 137.89°)
OKLaboklab(54.39% -0.1365 0.1021)
OKLCHoklch(54.39% 0.17 143.2)
XYZxyz(9.2263, 17.5928, 4.0079)
Luminance0.1759 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17871C #871782
analogous
#4A8717 #17871C #178754
triadic
#17871C #1C1787 #871C17
tetradic
#17871C #174A87 #871782 #875417
square
#17871C #174A87 #871782 #875417
split-complementary
#17871C #541787 #87174A
monochromatic
#051E06 #0E5311 #17871C #20BB27 #3BDE42

Accessibility & contrast

On white

4.65
#17871C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#17871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #17871C
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17871C#FFFFFF#000000##FFFFFF
##17871C1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7902
Deuteranopia (green-blind)
#7E7128
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #17871c;
/* rgb */ color: rgb(23, 135, 28);
/* oklch */ color: oklch(54.4% 0.170 143.2);
Tailwind
colors: {
  custom: {
    50: '#6bab61',
    500: '#17871c',
    950: '#000000',
  },
}
SCSS
$custom: #17871c;
$custom-light: #6bab61;
$custom-dark: #000000;
JSON
{
  "hex": "#17871c",
  "rgb": {
    "r": 23,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 122.679,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54388,
    "c": 0.17049,
    "h": 143.2
  },
  "luminance": 0.17594
}

Semantic roles & 50–950 ramp

primary
#17871C
secondary
#BB3FB5
accent
#3AE6EE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #17871C

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

Preview Lab → · Contrast checker → · Palette generator →

#17871C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva