#17871F#17871F

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

Color values

HEX#17871F
RGBrgb(23, 135, 31)
HSLhsl(124, 71%, 31%)
HSVhsv(124, 83%, 53%)
CMYKcmyk(83%, 0%, 77%, 47.1%)
CIE-LABlab(49.02, -50.14, 44.49)
CIE-LCHlch(49.02, 67.03, 138.42°)
OKLaboklab(54.41% -0.1357 0.1004)
OKLCHoklch(54.41% 0.169 143.5)
XYZxyz(9.2640, 17.6079, 4.2065)
Luminance0.1761 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17871F #87177F
analogous
#478717 #17871F #178757
triadic
#17871F #1F1787 #871F17
tetradic
#17871F #174787 #87177F #875717
square
#17871F #174787 #87177F #875717
split-complementary
#17871F #571787 #871747
monochromatic
#051E07 #0E5313 #17871F #20BB2B #3BDE46

Accessibility & contrast

On white

4.64
#17871F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #17871F
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17871F#FFFFFF#000000##FFFFFF
##17871F1.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #17871f;
/* rgb */ color: rgb(23, 135, 31);
/* oklch */ color: oklch(54.4% 0.169 143.5);
Tailwind
colors: {
  custom: {
    50: '#6bab62',
    500: '#17871f',
    950: '#000000',
  },
}
SCSS
$custom: #17871f;
$custom-light: #6bab62;
$custom-dark: #000000;
JSON
{
  "hex": "#17871f",
  "rgb": {
    "r": 23,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 124.286,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54409,
    "c": 0.16882,
    "h": 143.5
  },
  "luminance": 0.17609
}

Semantic roles & 50–950 ramp

primary
#17871F
secondary
#BB3FB2
accent
#3AE1EE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #17871F

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

Preview Lab → · Contrast checker → · Palette generator →

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