#9166CD#9166CD

#9166CD is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.0% C 0.155 H 301.1°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9166CD
RGBrgb(145, 102, 205)
HSLhsl(265, 51%, 60%)
HSVhsv(265, 50%, 80%)
CMYKcmyk(29.3%, 50.2%, 0%, 19.6%)
CIE-LABlab(51.76, 38.42, -47.28)
CIE-LCHlch(51.76, 60.92, 309.10°)
OKLaboklab(60% 0.0803 -0.133)
OKLCHoklch(60% 0.155 301.1)
XYZxyz(27.4453, 19.9302, 60.1468)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9166CD #A2CD66
analogous
#666ECD #9166CD #C566CD
triadic
#9166CD #CD9166 #66CD91
tetradic
#9166CD #CD666E #A2CD66 #66CDC5
square
#9166CD #CD666E #A2CD66 #66CDC5
split-complementary
#9166CD #CDC566 #6ECD66
monochromatic
#552D8B #713DB9 #9166CD #B294DC #D3C2EB

Accessibility & contrast

On white

4.21
#9166CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#9166CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9166CD
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9166CD#FFFFFF#000000##000000
##9166CD1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#447BD1
Deuteranopia (green-blind)
#4F7BCA
Tritanopia (blue-blind)
#857990
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9166cd;
/* rgb */ color: rgb(145, 102, 205);
/* oklch */ color: oklch(60.0% 0.155 301.1);
Tailwind
colors: {
  custom: {
    50: '#b493dd',
    500: '#9166cd',
    950: '#000000',
  },
}
SCSS
$custom: #9166cd;
$custom-light: #b493dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9166cd",
  "rgb": {
    "r": 145,
    "g": 102,
    "b": 205
  },
  "hsl": {
    "h": 265.049,
    "s": 50.739,
    "l": 60.196
  },
  "oklch": {
    "l": 0.59999,
    "c": 0.15541,
    "h": 301.1
  },
  "luminance": 0.1993
}

Semantic roles & 50–950 ramp

primary
#9166CD
secondary
#CBDBB4
accent
#BE277F
background
#FBF9FD
surface
#F6F1FB
border
#D0CBD4
text
#110D15
muted
#807E83

Preview Lab

Preview with #9166CD

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

Preview Lab → · Contrast checker → · Palette generator →

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