#9166E7#9166E7

#9166E7 is a mid, vivid violet. Relative luminance 0.213; OKLCH L 61.6% C 0.188 H 295.8°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#9166E7
RGBrgb(145, 102, 231)
HSLhsl(260, 73%, 65%)
HSVhsv(260, 56%, 91%)
CMYKcmyk(37.2%, 55.8%, 0%, 9.4%)
CIE-LABlab(53.27, 45.05, -59.58)
CIE-LCHlch(53.27, 74.69, 307.09°)
OKLaboklab(61.6% 0.0816 -0.1691)
OKLCHoklch(61.6% 0.188 295.8)
XYZxyz(30.8485, 21.2914, 78.0702)
Luminance0.2129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166E7 #BCE766
analogous
#667BE7 #9166E7 #D166E7
triadic
#9166E7 #E79166 #66E791
tetradic
#9166E7 #E7667B #BCE766 #66E7D1
square
#9166E7 #E7667B #BCE766 #66E7D1
split-complementary
#9166E7 #E7D166 #7BE766
monochromatic
#501DB6 #6B31DF #9166E7 #B79BEF #DDD0F8

Accessibility & contrast

On white

3.99
#9166E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#9166E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166E7
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166E7#FFFFFF#000000##000000
##9166E71.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2680EB
Deuteranopia (green-blind)
#357DE4
Tritanopia (blue-blind)
#7C819D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9166e7;
/* rgb */ color: rgb(145, 102, 231);
/* oklch */ color: oklch(61.6% 0.188 295.8);
Tailwind
colors: {
  custom: {
    50: '#b693ef',
    500: '#9166e7',
    950: '#000000',
  },
}
SCSS
$custom: #9166e7;
$custom-light: #b693ef;
$custom-dark: #000000;
JSON
{
  "hex": "#9166e7",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 231
  },
  "hsl": {
    "h": 260,
    "s": 72.881,
    "l": 65.294
  },
  "oklch": {
    "l": 0.61602,
    "c": 0.18778,
    "h": 295.8
  },
  "luminance": 0.21292
}

Semantic roles & 50–950 ramp

primary
#9166E7
secondary
#DCEABF
accent
#D51193
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #9166E7

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

Preview Lab → · Contrast checker → · Palette generator →

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