#9166E4#9166E4

#9166E4 is a mid, vivid violet. Relative luminance 0.211; OKLCH L 61.4% C 0.184 H 296.3°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9166E4
RGBrgb(145, 102, 228)
HSLhsl(260, 70%, 65%)
HSVhsv(260, 55%, 89%)
CMYKcmyk(36.4%, 55.3%, 0%, 10.6%)
CIE-LABlab(53.08, 44.27, -58.19)
CIE-LCHlch(53.08, 73.11, 307.26°)
OKLaboklab(61.41% 0.0816 -0.165)
OKLCHoklch(61.41% 0.184 296.3)
XYZxyz(30.4284, 21.1234, 75.8578)
Luminance0.2112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166E4 #B9E466
analogous
#667AE4 #9166E4 #D066E4
triadic
#9166E4 #E49166 #66E491
tetradic
#9166E4 #E4667A #B9E466 #66E4D0
square
#9166E4 #E4667A #B9E466 #66E4D0
split-complementary
#9166E4 #E4D066 #7AE466
monochromatic
#511FB0 #6C32DB #9166E4 #B69AED #DCCEF6

Accessibility & contrast

On white

4.02
#9166E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#9166E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166E4
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166E4#FFFFFF#000000##000000
##9166E41.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7FE8
Deuteranopia (green-blind)
#397DE1
Tritanopia (blue-blind)
#7D809B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9166e4;
/* rgb */ color: rgb(145, 102, 228);
/* oklch */ color: oklch(61.4% 0.184 296.3);
Tailwind
colors: {
  custom: {
    50: '#b693ed',
    500: '#9166e4',
    950: '#000000',
  },
}
SCSS
$custom: #9166e4;
$custom-light: #b693ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9166e4",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 228
  },
  "hsl": {
    "h": 260.476,
    "s": 70,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61409,
    "c": 0.18409,
    "h": 296.3
  },
  "luminance": 0.21124
}

Semantic roles & 50–950 ramp

primary
#9166E4
secondary
#DAE9BD
accent
#D21491
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9166E4

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

Preview Lab → · Contrast checker → · Palette generator →

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