#9166E5#9166E5

#9166E5 is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.5% C 0.185 H 296.1°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9166E5
RGBrgb(145, 102, 229)
HSLhsl(260, 71%, 65%)
HSVhsv(260, 55%, 90%)
CMYKcmyk(36.7%, 55.5%, 0%, 10.2%)
CIE-LABlab(53.15, 44.53, -58.65)
CIE-LCHlch(53.15, 73.64, 307.20°)
OKLaboklab(61.47% 0.0816 -0.1664)
OKLCHoklch(61.47% 0.185 296.1)
XYZxyz(30.5677, 21.1791, 76.5910)
Luminance0.2118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166E5 #BAE566
analogous
#667AE5 #9166E5 #D166E5
triadic
#9166E5 #E59166 #66E591
tetradic
#9166E5 #E5667A #BAE566 #66E5D1
square
#9166E5 #E5667A #BAE566 #66E5D1
split-complementary
#9166E5 #E5D166 #7AE566
monochromatic
#501EB2 #6B32DC #9166E5 #B79AEE #DCCFF7

Accessibility & contrast

On white

4.01
#9166E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#9166E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166E5
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166E5#FFFFFF#000000##000000
##9166E51.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2980E9
Deuteranopia (green-blind)
#387DE2
Tritanopia (blue-blind)
#7D809C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9166e5;
/* rgb */ color: rgb(145, 102, 229);
/* oklch */ color: oklch(61.5% 0.185 296.1);
Tailwind
colors: {
  custom: {
    50: '#b693ee',
    500: '#9166e5',
    950: '#000000',
  },
}
SCSS
$custom: #9166e5;
$custom-light: #b693ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9166e5",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 229
  },
  "hsl": {
    "h": 260.315,
    "s": 70.95,
    "l": 64.902
  },
  "oklch": {
    "l": 0.61473,
    "c": 0.18532,
    "h": 296.1
  },
  "luminance": 0.2118
}

Semantic roles & 50–950 ramp

primary
#9166E5
secondary
#DAE9BE
accent
#D31392
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9166E5

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

Preview Lab → · Contrast checker → · Palette generator →

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