#9166CF#9166CF

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

Color values

HEX#9166CF
RGBrgb(145, 102, 207)
HSLhsl(265, 52%, 61%)
HSVhsv(265, 51%, 81%)
CMYKcmyk(30%, 50.7%, 0%, 18.8%)
CIE-LABlab(51.87, 38.92, -48.24)
CIE-LCHlch(51.87, 61.98, 308.89°)
OKLaboklab(60.12% 0.0805 -0.1359)
OKLCHoklch(60.12% 0.158 300.7)
XYZxyz(27.6883, 20.0273, 61.4263)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166CF #A4CF66
analogous
#666FCF #9166CF #C566CF
triadic
#9166CF #CF9166 #66CF91
tetradic
#9166CF #CF666F #A4CF66 #66CFC5
square
#9166CF #CF666F #A4CF66 #66CFC5
split-complementary
#9166CF #CFC566 #6FCF66
monochromatic
#542D8E #703BBD #9166CF #B295DE #D4C3EC

Accessibility & contrast

On white

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

On black

5.01
#9166CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166CF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166CF#FFFFFF#000000##000000
##9166CF1.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#427BD3
Deuteranopia (green-blind)
#4E7BCC
Tritanopia (blue-blind)
#857A91
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9166cf;
/* rgb */ color: rgb(145, 102, 207);
/* oklch */ color: oklch(60.1% 0.158 300.7);
Tailwind
colors: {
  custom: {
    50: '#b493de',
    500: '#9166cf',
    950: '#000000',
  },
}
SCSS
$custom: #9166cf;
$custom-light: #b493de;
$custom-dark: #000000;
JSON
{
  "hex": "#9166cf",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 207
  },
  "hsl": {
    "h": 264.571,
    "s": 52.239,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60117,
    "c": 0.15792,
    "h": 300.7
  },
  "luminance": 0.20027
}

Semantic roles & 50–950 ramp

primary
#9166CF
secondary
#CCDCB4
accent
#C02681
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #9166CF

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

Preview Lab → · Contrast checker → · Palette generator →

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