#9166B2#9166B2

#9166B2 is a mid, vivid violet. Relative luminance 0.187; OKLCH L 58.5% C 0.121 H 309.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9166B2
RGBrgb(145, 102, 178)
HSLhsl(274, 33%, 55%)
HSVhsv(274, 43%, 70%)
CMYKcmyk(18.5%, 42.7%, 0%, 30.2%)
CIE-LABlab(50.38, 31.93, -33.91)
CIE-LCHlch(50.38, 46.58, 313.28°)
OKLaboklab(58.52% 0.0766 -0.0942)
OKLCHoklch(58.52% 0.121 309.1)
XYZxyz(24.4628, 18.7372, 44.4388)
Luminance0.1874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166B2 #87B266
analogous
#6B66B2 #9166B2 #B266AD
triadic
#9166B2 #B29166 #66B291
tetradic
#9166B2 #B26B66 #87B266 #66ADB2
square
#9166B2 #B26B66 #87B266 #66ADB2
split-complementary
#9166B2 #ADB266 #66B26B
monochromatic
#523569 #724992 #9166B2 #AE8FC6 #CCB7DB

Accessibility & contrast

On white

4.42
#9166B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#9166B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166B2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166B2#FFFFFF#000000##000000
##9166B21.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5576B5
Deuteranopia (green-blind)
#6079B0
Tritanopia (blue-blind)
#8D7283
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9166b2;
/* rgb */ color: rgb(145, 102, 178);
/* oklch */ color: oklch(58.5% 0.121 309.1);
Tailwind
colors: {
  custom: {
    50: '#b292c9',
    500: '#9166b2',
    950: '#000000',
  },
}
SCSS
$custom: #9166b2;
$custom-light: #b292c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9166b2",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 178
  },
  "hsl": {
    "h": 273.947,
    "s": 33.043,
    "l": 54.902
  },
  "oklch": {
    "l": 0.58518,
    "c": 0.12141,
    "h": 309.1
  },
  "luminance": 0.18737
}

Semantic roles & 50–950 ramp

primary
#9166B2
secondary
#B8CAAA
accent
#C95F8D
background
#FBF9FC
surface
#F6F1F8
border
#D0CBD1
text
#110D13
muted
#807E82

Preview Lab

Preview with #9166B2

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

Preview Lab → · Contrast checker → · Palette generator →

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