#9166ED#9166ED

#9166ED is a mid, vivid violet. Relative luminance 0.216; OKLCH L 62.0% C 0.195 H 294.7°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9166ED
RGBrgb(145, 102, 237)
HSLhsl(259, 79%, 66%)
HSVhsv(259, 57%, 93%)
CMYKcmyk(38.8%, 57%, 0%, 7.1%)
CIE-LABlab(53.64, 46.62, -62.35)
CIE-LCHlch(53.64, 77.85, 306.79°)
OKLaboklab(62% 0.0817 -0.1772)
OKLCHoklch(62% 0.195 294.7)
XYZxyz(31.7105, 21.6362, 82.6098)
Luminance0.2164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166ED #C2ED66
analogous
#667FED #9166ED #D566ED
triadic
#9166ED #ED9166 #66ED91
tetradic
#9166ED #ED667F #C2ED66 #66EDD5
square
#9166ED #ED667F #C2ED66 #66EDD5
split-complementary
#9166ED #EDD566 #7FED66
monochromatic
#4D17C2 #6A2FE7 #9166ED #B89DF3 #E0D4FA

Accessibility & contrast

On white

3.94
#9166ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#9166ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166ED
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166ED#FFFFFF#000000##000000
##9166ED1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1981F1
Deuteranopia (green-blind)
#2C7EEA
Tritanopia (blue-blind)
#7A83A0
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9166ed;
/* rgb */ color: rgb(145, 102, 237);
/* oklch */ color: oklch(62.0% 0.195 294.7);
Tailwind
colors: {
  custom: {
    50: '#b693f4',
    500: '#9166ed',
    950: '#000000',
  },
}
SCSS
$custom: #9166ed;
$custom-light: #b693f4;
$custom-dark: #000000;
JSON
{
  "hex": "#9166ed",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 237
  },
  "hsl": {
    "h": 259.111,
    "s": 78.947,
    "l": 66.471
  },
  "oklch": {
    "l": 0.61995,
    "c": 0.19513,
    "h": 294.7
  },
  "luminance": 0.21637
}

Semantic roles & 50–950 ramp

primary
#9166ED
secondary
#DFEDC2
accent
#DB0A99
background
#FBF9FF
surface
#F6F1FE
border
#D0CBD6
text
#120D17
muted
#817E85

Preview Lab

Preview with #9166ED

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

Preview Lab → · Contrast checker → · Palette generator →

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