#9166EB#9166EB

#9166EB is a mid, vivid violet. Relative luminance 0.215; OKLCH L 61.9% C 0.193 H 295.1°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#9166EB
RGBrgb(145, 102, 235)
HSLhsl(259, 77%, 66%)
HSVhsv(259, 57%, 92%)
CMYKcmyk(38.3%, 56.6%, 0%, 7.8%)
CIE-LABlab(53.51, 46.09, -61.43)
CIE-LCHlch(53.51, 76.80, 306.88°)
OKLaboklab(61.86% 0.0817 -0.1745)
OKLCHoklch(61.86% 0.193 295.1)
XYZxyz(31.4199, 21.5200, 81.0795)
Luminance0.2152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166EB #C0EB66
analogous
#667DEB #9166EB #D366EB
triadic
#9166EB #EB9166 #66EB91
tetradic
#9166EB #EB667D #C0EB66 #66EBD3
square
#9166EB #EB667D #C0EB66 #66EBD3
split-complementary
#9166EB #EBD366 #7DEB66
monochromatic
#4E19BE #6A30E4 #9166EB #B89CF2 #DFD2F9

Accessibility & contrast

On white

3.96
#9166EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#9166EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166EB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166EB#FFFFFF#000000##000000
##9166EB1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E81EF
Deuteranopia (green-blind)
#2F7EE8
Tritanopia (blue-blind)
#7B829F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9166eb;
/* rgb */ color: rgb(145, 102, 235);
/* oklch */ color: oklch(61.9% 0.193 295.1);
Tailwind
colors: {
  custom: {
    50: '#b693f2',
    500: '#9166eb',
    950: '#000000',
  },
}
SCSS
$custom: #9166eb;
$custom-light: #b693f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9166eb",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 259.398,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.61863,
    "c": 0.19269,
    "h": 295.1
  },
  "luminance": 0.21521
}

Semantic roles & 50–950 ramp

primary
#9166EB
secondary
#DEECC1
accent
#D90C97
background
#FBF9FE
surface
#F6F1FD
border
#D0CBD5
text
#120D17
muted
#817E85

Preview Lab

Preview with #9166EB

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

Preview Lab → · Contrast checker → · Palette generator →

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