#9166DB#9166DB

#9166DB is a mid, vivid violet. Relative luminance 0.206; OKLCH L 60.8% C 0.173 H 298.0°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9166DB
RGBrgb(145, 102, 219)
HSLhsl(262, 62%, 63%)
HSVhsv(262, 53%, 86%)
CMYKcmyk(33.8%, 53.4%, 0%, 14.1%)
CIE-LABlab(52.55, 41.95, -53.97)
CIE-LCHlch(52.55, 68.36, 307.86°)
OKLaboklab(60.84% 0.0813 -0.1526)
OKLCHoklch(60.84% 0.173 298)
XYZxyz(29.2115, 20.6366, 69.4484)
Luminance0.2064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166DB #B0DB66
analogous
#6675DB #9166DB #CB66DB
triadic
#9166DB #DB9166 #66DB91
tetradic
#9166DB #DB6675 #B0DB66 #66DBCB
square
#9166DB #DB6675 #B0DB66 #66DBCB
split-complementary
#9166DB #DBCB66 #75DB66
monochromatic
#5326A1 #6D34CF #9166DB #B598E7 #D8C9F2

Accessibility & contrast

On white

4.10
#9166DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#9166DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166DB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166DB#FFFFFF#000000##000000
##9166DB1.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#377EDF
Deuteranopia (green-blind)
#437CD8
Tritanopia (blue-blind)
#817D97
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9166db;
/* rgb */ color: rgb(145, 102, 219);
/* oklch */ color: oklch(60.8% 0.173 298.0);
Tailwind
colors: {
  custom: {
    50: '#b593e7',
    500: '#9166db',
    950: '#000000',
  },
}
SCSS
$custom: #9166db;
$custom-light: #b593e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9166db",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 219
  },
  "hsl": {
    "h": 262.051,
    "s": 61.905,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60842,
    "c": 0.17294,
    "h": 298
  },
  "luminance": 0.20637
}

Semantic roles & 50–950 ramp

primary
#9166DB
secondary
#D4E3B9
accent
#CA1C8A
background
#FBF9FE
surface
#F6F1FC
border
#D0CBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #9166DB

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

Preview Lab → · Contrast checker → · Palette generator →

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