#9166DF#9166DF

#9166DF is a mid, vivid violet. Relative luminance 0.208; OKLCH L 61.1% C 0.178 H 297.2°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9166DF
RGBrgb(145, 102, 223)
HSLhsl(261, 65%, 64%)
HSVhsv(261, 54%, 87%)
CMYKcmyk(35%, 54.3%, 0%, 12.5%)
CIE-LABlab(52.78, 42.98, -55.85)
CIE-LCHlch(52.78, 70.47, 307.58°)
OKLaboklab(61.09% 0.0815 -0.1582)
OKLCHoklch(61.09% 0.178 297.2)
XYZxyz(29.7444, 20.8498, 72.2550)
Luminance0.2085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166DF #B4DF66
analogous
#6677DF #9166DF #CD66DF
triadic
#9166DF #DF9166 #66DF91
tetradic
#9166DF #DF6677 #B4DF66 #66DFCD
square
#9166DF #DF6677 #B4DF66 #66DFCD
split-complementary
#9166DF #DFCD66 #77DF66
monochromatic
#5223A8 #6D33D4 #9166DF #B599EA #DACBF4

Accessibility & contrast

On white

4.06
#9166DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#9166DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166DF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166DF#FFFFFF#000000##000000
##9166DF1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#327EE3
Deuteranopia (green-blind)
#3F7DDC
Tritanopia (blue-blind)
#7F7E99
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9166df;
/* rgb */ color: rgb(145, 102, 223);
/* oklch */ color: oklch(61.1% 0.178 297.2);
Tailwind
colors: {
  custom: {
    50: '#b593ea',
    500: '#9166df',
    950: '#000000',
  },
}
SCSS
$custom: #9166df;
$custom-light: #b593ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9166df",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 223
  },
  "hsl": {
    "h": 261.322,
    "s": 65.405,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61092,
    "c": 0.1779,
    "h": 297.2
  },
  "luminance": 0.2085
}

Semantic roles & 50–950 ramp

primary
#9166DF
secondary
#D7E6BB
accent
#CD188D
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9166DF

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

Preview Lab → · Contrast checker → · Palette generator →

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