#9166EC#9166EC

#9166EC is a mid, vivid violet. Relative luminance 0.216; OKLCH L 61.9% C 0.194 H 294.9°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#9166EC
RGBrgb(145, 102, 236)
HSLhsl(259, 78%, 66%)
HSVhsv(259, 57%, 93%)
CMYKcmyk(38.6%, 56.8%, 0%, 7.5%)
CIE-LABlab(53.58, 46.35, -61.89)
CIE-LCHlch(53.58, 77.32, 306.83°)
OKLaboklab(61.93% 0.0817 -0.1759)
OKLCHoklch(61.93% 0.194 294.9)
XYZxyz(31.5648, 21.5779, 81.8425)
Luminance0.2158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166EC #C1EC66
analogous
#667EEC #9166EC #D466EC
triadic
#9166EC #EC9166 #66EC91
tetradic
#9166EC #EC667E #C1EC66 #66ECD4
square
#9166EC #EC667E #C1EC66 #66ECD4
split-complementary
#9166EC #ECD466 #7EEC66
monochromatic
#4E18C0 #6A30E5 #9166EC #B89CF3 #DFD3FA

Accessibility & contrast

On white

3.95
#9166EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#9166EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166EC
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166EC#FFFFFF#000000##000000
##9166EC1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B81F0
Deuteranopia (green-blind)
#2E7EE9
Tritanopia (blue-blind)
#7A839F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9166ec;
/* rgb */ color: rgb(145, 102, 236);
/* oklch */ color: oklch(61.9% 0.194 294.9);
Tailwind
colors: {
  custom: {
    50: '#b693f3',
    500: '#9166ec',
    950: '#000000',
  },
}
SCSS
$custom: #9166ec;
$custom-light: #b693f3;
$custom-dark: #000000;
JSON
{
  "hex": "#9166ec",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 259.254,
    "s": 77.907,
    "l": 66.275
  },
  "oklch": {
    "l": 0.61929,
    "c": 0.19391,
    "h": 294.9
  },
  "luminance": 0.21579
}

Semantic roles & 50–950 ramp

primary
#9166EC
secondary
#DFEDC1
accent
#DA0B98
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9166EC

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

Preview Lab → · Contrast checker → · Palette generator →

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