#9170C5#9170C5

#9170C5 is a mid, vivid violet. Relative luminance 0.216; OKLCH L 61.3% C 0.129 H 300.6°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9170C5
RGBrgb(145, 112, 197)
HSLhsl(263, 42%, 61%)
HSVhsv(263, 43%, 77%)
CMYKcmyk(26.4%, 43.1%, 0%, 22.7%)
CIE-LABlab(53.64, 30.71, -39.73)
CIE-LCHlch(53.64, 50.21, 307.70°)
OKLaboklab(61.28% 0.0656 -0.111)
OKLCHoklch(61.28% 0.129 300.6)
XYZxyz(27.5470, 21.6392, 55.5380)
Luminance0.2164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9170C5 #A4C570
analogous
#7079C5 #9170C5 #BB70C5
triadic
#9170C5 #C59170 #70C591
tetradic
#9170C5 #C57079 #A4C570 #70C5BB
square
#9170C5 #C57079 #A4C570 #70C5BB
split-complementary
#9170C5 #C5BB70 #79C570
monochromatic
#543685 #7048B0 #9170C5 #B29CD7 #D4C7E8

Accessibility & contrast

On white

3.94
#9170C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#9170C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9170C5
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9170C5#FFFFFF#000000##000000
##9170C51.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5980C8
Deuteranopia (green-blind)
#6080C3
Tritanopia (blue-blind)
#877F91
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9170c5;
/* rgb */ color: rgb(145, 112, 197);
/* oklch */ color: oklch(61.3% 0.129 300.6);
Tailwind
colors: {
  custom: {
    50: '#b399d7',
    500: '#9170c5',
    950: '#000000',
  },
}
SCSS
$custom: #9170c5;
$custom-light: #b399d7;
$custom-dark: #000000;
JSON
{
  "hex": "#9170c5",
  "rgb": {
    "r": 145,
    "g": 112,
    "b": 197
  },
  "hsl": {
    "h": 263.294,
    "s": 42.289,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61275,
    "c": 0.12896,
    "h": 300.6
  },
  "luminance": 0.21639
}

Semantic roles & 50–950 ramp

primary
#9170C5
secondary
#CCD9B8
accent
#B53082
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110E14
muted
#807E83

Preview Lab

Preview with #9170C5

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

Preview Lab → · Contrast checker → · Palette generator →

#9170C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva