#170127#170127

#170127 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.2% C 0.079 H 307.5°. Best body text is #FFFFFF at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#170127
RGBrgb(23, 1, 39)
HSLhsl(275, 95%, 8%)
HSVhsv(275, 97%, 15%)
CMYKcmyk(41%, 97.4%, 0%, 84.7%)
CIE-LABlab(3.17, 16.27, -19.27)
CIE-LCHlch(3.17, 25.22, 310.18°)
OKLaboklab(16.24% 0.048 -0.0625)
OKLCHoklch(16.24% 0.079 307.5)
XYZxyz(0.7303, 0.3504, 1.9482)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170127 #112701
analogous
#040127 #170127 #270124
triadic
#170127 #271701 #012717
tetradic
#170127 #270401 #112701 #012427
square
#170127 #270401 #112701 #012427
split-complementary
#170127 #242701 #012704
monochromatic
#12011E #12011E #170127 #3A0363 #5D049E

Accessibility & contrast

On white

19.63
#170127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#170127 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170127
19.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170127#FFFFFF#000000##FFFFFF
##1701271.0019.631.0719.63
#FFFFFF19.631.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B28
Deuteranopia (green-blind)
#000C26
Tritanopia (blue-blind)
#140913
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #170127;
/* rgb */ color: rgb(23, 1, 39);
/* oklch */ color: oklch(16.2% 0.079 307.5);
Tailwind
colors: {
  custom: {
    50: '#544761',
    500: '#170127',
    950: '#000000',
  },
}
SCSS
$custom: #170127;
$custom-light: #544761;
$custom-dark: #000000;
JSON
{
  "hex": "#170127",
  "rgb": {
    "r": 23,
    "g": 1,
    "b": 39
  },
  "hsl": {
    "h": 274.737,
    "s": 95,
    "l": 7.843
  },
  "oklch": {
    "l": 0.16243,
    "c": 0.07878,
    "h": 307.5
  },
  "luminance": 0.0035
}

Semantic roles & 50–950 ramp

primary
#170127
secondary
#3B6E16
accent
#FF2983
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#030005
muted
#787779

Preview Lab

Preview with #170127

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

Preview Lab → · Contrast checker → · Palette generator →

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