#9172C6#9172C6

#9172C6 is a mid, vivid violet. Relative luminance 0.221; OKLCH L 61.7% C 0.127 H 299.7°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#9172C6
RGBrgb(145, 114, 198)
HSLhsl(262, 42%, 61%)
HSVhsv(262, 42%, 78%)
CMYKcmyk(26.8%, 42.4%, 0%, 22.4%)
CIE-LABlab(54.17, 29.80, -39.47)
CIE-LCHlch(54.17, 49.46, 307.05°)
OKLaboklab(61.69% 0.0629 -0.1103)
OKLCHoklch(61.69% 0.127 299.7)
XYZxyz(27.8851, 22.1314, 56.2178)
Luminance0.2213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9172C6 #A7C672
analogous
#727DC6 #9172C6 #BB72C6
triadic
#9172C6 #C69172 #72C691
tetradic
#9172C6 #C6727D #A7C672 #72C6BB
square
#9172C6 #C6727D #A7C672 #72C6BB
split-complementary
#9172C6 #C6BB72 #7DC672
monochromatic
#543787 #6F48B3 #9172C6 #B39ED8 #D5C9E9

Accessibility & contrast

On white

3.87
#9172C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#9172C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9172C6
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9172C6#FFFFFF#000000##000000
##9172C61.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B81C9
Deuteranopia (green-blind)
#6181C4
Tritanopia (blue-blind)
#878192
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9172c6;
/* rgb */ color: rgb(145, 114, 198);
/* oklch */ color: oklch(61.7% 0.127 299.7);
Tailwind
colors: {
  custom: {
    50: '#b39bd7',
    500: '#9172c6',
    950: '#000000',
  },
}
SCSS
$custom: #9172c6;
$custom-light: #b39bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#9172c6",
  "rgb": {
    "r": 145,
    "g": 114,
    "b": 198
  },
  "hsl": {
    "h": 262.143,
    "s": 42.424,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61686,
    "c": 0.127,
    "h": 299.7
  },
  "luminance": 0.22132
}

Semantic roles & 50–950 ramp

primary
#9172C6
secondary
#CEDABA
accent
#B63084
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110E14
muted
#807E83

Preview Lab

Preview with #9172C6

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

Preview Lab → · Contrast checker → · Palette generator →

#9172C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva