#9166E8#9166E8

#9166E8 is a mid, vivid violet. Relative luminance 0.213; OKLCH L 61.7% C 0.189 H 295.6°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#9166E8
RGBrgb(145, 102, 232)
HSLhsl(260, 74%, 65%)
HSVhsv(260, 56%, 91%)
CMYKcmyk(37.5%, 56%, 0%, 9%)
CIE-LABlab(53.33, 45.31, -60.04)
CIE-LCHlch(53.33, 75.22, 307.04°)
OKLaboklab(61.67% 0.0816 -0.1705)
OKLCHoklch(61.67% 0.189 295.6)
XYZxyz(30.9901, 21.3481, 78.8161)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166E8 #BDE866
analogous
#667CE8 #9166E8 #D266E8
triadic
#9166E8 #E89166 #66E891
tetradic
#9166E8 #E8667C #BDE866 #66E8D2
square
#9166E8 #E8667C #BDE866 #66E8D2
split-complementary
#9166E8 #E8D266 #7CE866
monochromatic
#4F1CB8 #6B31E0 #9166E8 #B79BF0 #DDD0F8

Accessibility & contrast

On white

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

On black

5.27
#9166E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166E8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166E8#FFFFFF#000000##000000
##9166E81.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2480EC
Deuteranopia (green-blind)
#347EE5
Tritanopia (blue-blind)
#7C819D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9166e8;
/* rgb */ color: rgb(145, 102, 232);
/* oklch */ color: oklch(61.7% 0.189 295.6);
Tailwind
colors: {
  custom: {
    50: '#b693f0',
    500: '#9166e8',
    950: '#000000',
  },
}
SCSS
$custom: #9166e8;
$custom-light: #b693f0;
$custom-dark: #000000;
JSON
{
  "hex": "#9166e8",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 232
  },
  "hsl": {
    "h": 259.846,
    "s": 73.864,
    "l": 65.49
  },
  "oklch": {
    "l": 0.61667,
    "c": 0.189,
    "h": 295.6
  },
  "luminance": 0.21349
}

Semantic roles & 50–950 ramp

primary
#9166E8
secondary
#DCEBBF
accent
#D61094
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9166E8

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

Preview Lab → · Contrast checker → · Palette generator →

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