#9166CB#9166CB

#9166CB is a mid, vivid violet. Relative luminance 0.198; OKLCH L 59.9% C 0.153 H 301.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9166CB
RGBrgb(145, 102, 203)
HSLhsl(266, 49%, 60%)
HSVhsv(266, 50%, 80%)
CMYKcmyk(28.6%, 49.8%, 0%, 20.4%)
CIE-LABlab(51.65, 37.92, -46.31)
CIE-LCHlch(51.65, 59.86, 309.32°)
OKLaboklab(59.88% 0.0801 -0.1302)
OKLCHoklch(59.88% 0.153 301.6)
XYZxyz(27.2055, 19.8342, 58.8835)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166CB #A0CB66
analogous
#666DCB #9166CB #C466CB
triadic
#9166CB #CB9166 #66CB91
tetradic
#9166CB #CB666D #A0CB66 #66CBC4
square
#9166CB #CB666D #A0CB66 #66CBC4
split-complementary
#9166CB #CBC466 #6DCB66
monochromatic
#552E88 #713EB6 #9166CB #B294DB #D3C1EA

Accessibility & contrast

On white

4.23
#9166CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#9166CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166CB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166CB#FFFFFF#000000##000000
##9166CB1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#467ACF
Deuteranopia (green-blind)
#517BC9
Tritanopia (blue-blind)
#86798F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9166cb;
/* rgb */ color: rgb(145, 102, 203);
/* oklch */ color: oklch(59.9% 0.153 301.6);
Tailwind
colors: {
  custom: {
    50: '#b493db',
    500: '#9166cb',
    950: '#000000',
  },
}
SCSS
$custom: #9166cb;
$custom-light: #b493db;
$custom-dark: #000000;
JSON
{
  "hex": "#9166cb",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 203
  },
  "hsl": {
    "h": 265.545,
    "s": 49.268,
    "l": 59.804
  },
  "oklch": {
    "l": 0.59883,
    "c": 0.1529,
    "h": 301.6
  },
  "luminance": 0.19834
}

Semantic roles & 50–950 ramp

primary
#9166CB
secondary
#C9DAB3
accent
#D94F9E
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #9166CB

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

Preview Lab → · Contrast checker → · Palette generator →

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