#9166EA#9166EA

#9166EA is a mid, vivid violet. Relative luminance 0.215; OKLCH L 61.8% C 0.191 H 295.2°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9166EA
RGBrgb(145, 102, 234)
HSLhsl(260, 76%, 66%)
HSVhsv(260, 56%, 92%)
CMYKcmyk(38%, 56.4%, 0%, 8.2%)
CIE-LABlab(53.45, 45.83, -60.97)
CIE-LCHlch(53.45, 76.27, 306.93°)
OKLaboklab(61.8% 0.0817 -0.1732)
OKLCHoklch(61.8% 0.191 295.2)
XYZxyz(31.2758, 21.4624, 80.3208)
Luminance0.2146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166EA #BFEA66
analogous
#667DEA #9166EA #D366EA
triadic
#9166EA #EA9166 #66EA91
tetradic
#9166EA #EA667D #BFEA66 #66EAD3
square
#9166EA #EA667D #BFEA66 #66EAD3
split-complementary
#9166EA #EAD366 #7DEA66
monochromatic
#4F1ABC #6A30E3 #9166EA #B89CF1 #DED2F9

Accessibility & contrast

On white

3.97
#9166EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#9166EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166EA
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166EA#FFFFFF#000000##000000
##9166EA1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2081EE
Deuteranopia (green-blind)
#317EE7
Tritanopia (blue-blind)
#7B829E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9166ea;
/* rgb */ color: rgb(145, 102, 234);
/* oklch */ color: oklch(61.8% 0.191 295.2);
Tailwind
colors: {
  custom: {
    50: '#b693f1',
    500: '#9166ea',
    950: '#000000',
  },
}
SCSS
$custom: #9166ea;
$custom-light: #b693f1;
$custom-dark: #000000;
JSON
{
  "hex": "#9166ea",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 234
  },
  "hsl": {
    "h": 259.545,
    "s": 75.862,
    "l": 65.882
  },
  "oklch": {
    "l": 0.61798,
    "c": 0.19146,
    "h": 295.2
  },
  "luminance": 0.21463
}

Semantic roles & 50–950 ramp

primary
#9166EA
secondary
#DEECC0
accent
#D80D96
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9166EA

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

Preview Lab → · Contrast checker → · Palette generator →

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