#9166CC#9166CC

#9166CC is a mid, vivid violet. Relative luminance 0.199; OKLCH L 59.9% C 0.154 H 301.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9166CC
RGBrgb(145, 102, 204)
HSLhsl(265, 50%, 60%)
HSVhsv(265, 50%, 80%)
CMYKcmyk(28.9%, 50%, 0%, 20%)
CIE-LABlab(51.70, 38.17, -46.79)
CIE-LCHlch(51.70, 60.39, 309.21°)
OKLaboklab(59.94% 0.0802 -0.1316)
OKLCHoklch(59.94% 0.154 301.4)
XYZxyz(27.3250, 19.8820, 59.5131)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166CC #A1CC66
analogous
#666ECC #9166CC #C466CC
triadic
#9166CC #CC9166 #66CC91
tetradic
#9166CC #CC666E #A1CC66 #66CCC4
square
#9166CC #CC666E #A1CC66 #66CCC4
split-complementary
#9166CC #CCC466 #6ECC66
monochromatic
#552E8A #713DB8 #9166CC #B294DB #D3C2EB

Accessibility & contrast

On white

4.22
#9166CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#9166CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166CC
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166CC#FFFFFF#000000##000000
##9166CC1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#457BD0
Deuteranopia (green-blind)
#507BCA
Tritanopia (blue-blind)
#86798F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9166cc;
/* rgb */ color: rgb(145, 102, 204);
/* oklch */ color: oklch(59.9% 0.154 301.4);
Tailwind
colors: {
  custom: {
    50: '#b493dc',
    500: '#9166cc',
    950: '#000000',
  },
}
SCSS
$custom: #9166cc;
$custom-light: #b493dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9166cc",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 204
  },
  "hsl": {
    "h": 265.294,
    "s": 50,
    "l": 60
  },
  "oklch": {
    "l": 0.59941,
    "c": 0.15415,
    "h": 301.4
  },
  "luminance": 0.19882
}

Semantic roles & 50–950 ramp

primary
#9166CC
secondary
#CADBB3
accent
#DA4E9F
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #9166CC

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

Preview Lab → · Contrast checker → · Palette generator →

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