#8166AF#8166AF
#8166AF is a mid, moderate violet. Relative luminance 0.173; OKLCH L 56.7% C 0.113 H 299.9°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #8166AF |
|---|---|
| RGB | rgb(129, 102, 175) |
| HSL | hsl(262, 31%, 54%) |
| HSV | hsv(262, 42%, 69%) |
| CMYK | cmyk(26.3%, 41.7%, 0%, 31.4%) |
| CIE-LAB | lab(48.59, 26.43, -35.08) |
| CIE-LCH | lch(48.59, 43.92, 306.99°) |
| OKLab | oklab(56.74% 0.0562 -0.0979) |
| OKLCH | oklch(56.74% 0.113 299.9) |
| XYZ | xyz(21.5407, 17.2649, 42.7467) |
| Luminance | 0.1726 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 4.08
Deep Lilac
#966EBD
ΔE00 5.30
Dark Lavender
#856798
ΔE00 6.22
Amethyst
#9B5FC0
ΔE00 6.45
Royal Purple
#7851A9
ΔE00 6.80
Mediumpurple
#9370DB
ΔE00 8.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8166AF #94AF66
analogous
#6670AF #8166AF #A666AF
triadic
#8166AF #AF8166 #66AF81
tetradic
#8166AF #AF6670 #94AF66 #66AFA6
square
#8166AF #AF6670 #94AF66 #66AFA6
split-complementary
#8166AF #AFA666 #70AF66
monochromatic
#473566 #634A8E #8166AF #A28EC4 #C3B6D9
Accessibility & contrast
On white
4.72
#8166AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.45
#8166AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8166AF
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8166AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8166AF | 1.00 | 4.72 | 4.45 | 4.72 |
| #FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5373B2
Deuteranopia (green-blind)
#5873AD
Tritanopia (blue-blind)
#787282
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #8166af; /* rgb */ color: rgb(129, 102, 175); /* oklch */ color: oklch(56.7% 0.113 299.9);
Tailwind
colors: {
custom: {
50: '#a792c7',
500: '#8166af',
950: '#000000',
},
}SCSS
$custom: #8166af; $custom-light: #a792c7; $custom-dark: #000000;
JSON
{
"hex": "#8166af",
"rgb": {
"r": 129,
"g": 102,
"b": 175
},
"hsl": {
"h": 262.192,
"s": 31.33,
"l": 54.314
},
"oklch": {
"l": 0.56743,
"c": 0.11291,
"h": 299.9
},
"luminance": 0.17265
}Semantic roles & 50–950 ramp
primary
#8166AF
secondary
#BCC8A9
accent
#C860A1
background
#FAF9FC
surface
#F4F1F8
border
#CECBD1
text
#100D13
muted
#7F7E82