#9166CA#9166CA

#9166CA is a mid, vivid violet. Relative luminance 0.198; OKLCH L 59.8% C 0.152 H 301.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9166CA
RGBrgb(145, 102, 202)
HSLhsl(266, 49%, 60%)
HSVhsv(266, 50%, 79%)
CMYKcmyk(28.2%, 49.5%, 0%, 20.8%)
CIE-LABlab(51.60, 37.68, -45.82)
CIE-LCHlch(51.60, 59.32, 309.43°)
OKLaboklab(59.83% 0.08 -0.1288)
OKLCHoklch(59.83% 0.152 301.9)
XYZxyz(27.0867, 19.7867, 58.2579)
Luminance0.1979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166CA #9FCA66
analogous
#666DCA #9166CA #C366CA
triadic
#9166CA #CA9166 #66CA91
tetradic
#9166CA #CA666D #9FCA66 #66CAC3
square
#9166CA #CA666D #9FCA66 #66CAC3
split-complementary
#9166CA #CAC366 #6DCA66
monochromatic
#552F87 #713EB4 #9166CA #B293DA #D2C1E9

Accessibility & contrast

On white

4.24
#9166CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#9166CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166CA
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166CA#FFFFFF#000000##000000
##9166CA1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#467ACD
Deuteranopia (green-blind)
#527BC8
Tritanopia (blue-blind)
#86788F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9166ca;
/* rgb */ color: rgb(145, 102, 202);
/* oklch */ color: oklch(59.8% 0.152 301.9);
Tailwind
colors: {
  custom: {
    50: '#b493da',
    500: '#9166ca',
    950: '#000000',
  },
}
SCSS
$custom: #9166ca;
$custom-light: #b493da;
$custom-dark: #000000;
JSON
{
  "hex": "#9166ca",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 202
  },
  "hsl": {
    "h": 265.8,
    "s": 48.544,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59825,
    "c": 0.15164,
    "h": 301.9
  },
  "luminance": 0.19787
}

Semantic roles & 50–950 ramp

primary
#9166CA
secondary
#C9D9B2
accent
#D8509D
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #9166CA

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

Preview Lab → · Contrast checker → · Palette generator →

#9166CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva