#9166E9#9166E9

#9166E9 is a mid, vivid violet. Relative luminance 0.214; OKLCH L 61.7% C 0.190 H 295.4°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#9166E9
RGBrgb(145, 102, 233)
HSLhsl(260, 75%, 66%)
HSVhsv(260, 56%, 91%)
CMYKcmyk(37.8%, 56.2%, 0%, 8.6%)
CIE-LABlab(53.39, 45.57, -60.51)
CIE-LCHlch(53.39, 75.75, 306.98°)
OKLaboklab(61.73% 0.0817 -0.1718)
OKLCHoklch(61.73% 0.19 295.4)
XYZxyz(31.1326, 21.4051, 79.5663)
Luminance0.2141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166E9 #BEE966
analogous
#667CE9 #9166E9 #D366E9
triadic
#9166E9 #E99166 #66E991
tetradic
#9166E9 #E9667C #BEE966 #66E9D3
square
#9166E9 #E9667C #BEE966 #66E9D3
split-complementary
#9166E9 #E9D366 #7CE966
monochromatic
#4F1BBA #6B30E1 #9166E9 #B79CF1 #DED1F8

Accessibility & contrast

On white

3.98
#9166E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#9166E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166E9
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166E9#FFFFFF#000000##000000
##9166E91.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2281ED
Deuteranopia (green-blind)
#337EE6
Tritanopia (blue-blind)
#7B829E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9166e9;
/* rgb */ color: rgb(145, 102, 233);
/* oklch */ color: oklch(61.7% 0.190 295.4);
Tailwind
colors: {
  custom: {
    50: '#b693f1',
    500: '#9166e9',
    950: '#000000',
  },
}
SCSS
$custom: #9166e9;
$custom-light: #b693f1;
$custom-dark: #000000;
JSON
{
  "hex": "#9166e9",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 233
  },
  "hsl": {
    "h": 259.695,
    "s": 74.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.61732,
    "c": 0.19023,
    "h": 295.4
  },
  "luminance": 0.21406
}

Semantic roles & 50–950 ramp

primary
#9166E9
secondary
#DDEBC0
accent
#D70E95
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9166E9

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

Preview Lab → · Contrast checker → · Palette generator →

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