#9166CE#9166CE

#9166CE is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.1% C 0.157 H 300.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9166CE
RGBrgb(145, 102, 206)
HSLhsl(265, 51%, 60%)
HSVhsv(265, 50%, 81%)
CMYKcmyk(29.6%, 50.5%, 0%, 19.2%)
CIE-LABlab(51.81, 38.67, -47.76)
CIE-LCHlch(51.81, 61.45, 308.99°)
OKLaboklab(60.06% 0.0804 -0.1344)
OKLCHoklch(60.06% 0.157 300.9)
XYZxyz(27.5664, 19.9786, 60.7845)
Luminance0.1998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166CE #A3CE66
analogous
#666FCE #9166CE #C566CE
triadic
#9166CE #CE9166 #66CE91
tetradic
#9166CE #CE666F #A3CE66 #66CEC5
square
#9166CE #CE666F #A3CE66 #66CEC5
split-complementary
#9166CE #CEC566 #6FCE66
monochromatic
#552D8D #703CBB #9166CE #B294DD #D4C3EC

Accessibility & contrast

On white

4.20
#9166CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#9166CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166CE
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166CE#FFFFFF#000000##000000
##9166CE1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#437BD2
Deuteranopia (green-blind)
#4F7BCB
Tritanopia (blue-blind)
#857990
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9166ce;
/* rgb */ color: rgb(145, 102, 206);
/* oklch */ color: oklch(60.1% 0.157 300.9);
Tailwind
colors: {
  custom: {
    50: '#b493dd',
    500: '#9166ce',
    950: '#000000',
  },
}
SCSS
$custom: #9166ce;
$custom-light: #b493dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9166ce",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 206
  },
  "hsl": {
    "h": 264.808,
    "s": 51.485,
    "l": 60.392
  },
  "oklch": {
    "l": 0.60058,
    "c": 0.15667,
    "h": 300.9
  },
  "luminance": 0.19979
}

Semantic roles & 50–950 ramp

primary
#9166CE
secondary
#CBDCB4
accent
#BF2780
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #9166CE

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

Preview Lab → · Contrast checker → · Palette generator →

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