#7166BA#7166BA
#7166BA is a mid, vivid blue. Relative luminance 0.166; OKLCH L 55.9% C 0.127 H 287.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #7166BA |
|---|---|
| RGB | rgb(113, 102, 186) |
| HSL | hsl(248, 38%, 56%) |
| HSV | hsv(248, 45%, 73%) |
| CMYK | cmyk(39.2%, 45.2%, 0%, 27.1%) |
| CIE-LAB | lab(47.70, 24.91, -42.99) |
| CIE-LCH | lch(47.70, 49.68, 300.09°) |
| OKLab | oklab(55.9% 0.0384 -0.1213) |
| OKLCH | oklch(55.9% 0.127 287.5) |
| XYZ | xyz(20.4219, 16.5580, 48.5649) |
| Luminance | 0.1656 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 5.04
Slate Blue
#6A5ACD
ΔE00 5.27
Light Indigo
#6D5ACF
ΔE00 5.35
Iris
#6258C4
ΔE00 5.61
Deep Lavender
#8D5EB7
ΔE00 7.46
Royal Purple
#7851A9
ΔE00 7.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7166BA #AFBA66
analogous
#6685BA #7166BA #9B66BA
triadic
#7166BA #BA7166 #66BA71
tetradic
#7166BA #BA6685 #AFBA66 #66BA9B
square
#7166BA #BA6685 #AFBA66 #66BA9B
split-complementary
#7166BA #BA9B66 #85BA66
monochromatic
#3C3372 #52469C #7166BA #9890CD #BFBAE0
Accessibility & contrast
On white
4.87
#7166BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#7166BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7166BA
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7166BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7166BA | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4873BD
Deuteranopia (green-blind)
#476FB8
Tritanopia (blue-blind)
#5D7787
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7166ba; /* rgb */ color: rgb(113, 102, 186); /* oklch */ color: oklch(55.9% 0.127 287.5);
Tailwind
colors: {
custom: {
50: '#9d91cf',
500: '#7166ba',
950: '#000000',
},
}SCSS
$custom: #7166ba; $custom-light: #9d91cf; $custom-dark: #000000;
JSON
{
"hex": "#7166ba",
"rgb": {
"r": 113,
"g": 102,
"b": 186
},
"hsl": {
"h": 247.857,
"s": 37.838,
"l": 56.471
},
"oklch": {
"l": 0.559,
"c": 0.12725,
"h": 287.5
},
"luminance": 0.16559
}Semantic roles & 50–950 ramp
primary
#7166BA
secondary
#CBCFAD
accent
#CE5ABF
background
#F9F8FC
surface
#F2F0F9
border
#CCCBD2
text
#0F0D14
muted
#7E7D82