#9166DC#9166DC

#9166DC is a mid, vivid violet. Relative luminance 0.207; OKLCH L 60.9% C 0.174 H 297.8°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9166DC
RGBrgb(145, 102, 220)
HSLhsl(262, 63%, 63%)
HSVhsv(262, 54%, 86%)
CMYKcmyk(34.1%, 53.6%, 0%, 13.7%)
CIE-LABlab(52.61, 42.21, -54.44)
CIE-LCHlch(52.61, 68.89, 307.79°)
OKLaboklab(60.9% 0.0813 -0.154)
OKLCHoklch(60.9% 0.174 297.8)
XYZxyz(29.3435, 20.6894, 70.1438)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166DC #B1DC66
analogous
#6676DC #9166DC #CC66DC
triadic
#9166DC #DC9166 #66DC91
tetradic
#9166DC #DC6676 #B1DC66 #66DCCC
square
#9166DC #DC6676 #B1DC66 #66DCCC
split-complementary
#9166DC #DCCC66 #76DC66
monochromatic
#5325A2 #6D34D1 #9166DC #B598E7 #D9CAF3

Accessibility & contrast

On white

4.09
#9166DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#9166DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166DC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166DC#FFFFFF#000000##000000
##9166DC1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#367EE0
Deuteranopia (green-blind)
#427CD9
Tritanopia (blue-blind)
#807E97
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9166dc;
/* rgb */ color: rgb(145, 102, 220);
/* oklch */ color: oklch(60.9% 0.174 297.8);
Tailwind
colors: {
  custom: {
    50: '#b593e7',
    500: '#9166dc',
    950: '#000000',
  },
}
SCSS
$custom: #9166dc;
$custom-light: #b593e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9166dc",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 220
  },
  "hsl": {
    "h": 261.864,
    "s": 62.766,
    "l": 63.137
  },
  "oklch": {
    "l": 0.60904,
    "c": 0.17418,
    "h": 297.8
  },
  "luminance": 0.2069
}

Semantic roles & 50–950 ramp

primary
#9166DC
secondary
#D5E4BA
accent
#CB1B8B
background
#FBF9FE
surface
#F6F1FC
border
#D0CBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #9166DC

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

Preview Lab → · Contrast checker → · Palette generator →

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