#7166C2#7166C2
#7166C2 is a mid, vivid blue. Relative luminance 0.169; OKLCH L 56.4% C 0.139 H 286.5°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #7166C2 |
|---|---|
| RGB | rgb(113, 102, 194) |
| HSL | hsl(247, 43%, 58%) |
| HSV | hsv(247, 47%, 76%) |
| CMYK | cmyk(41.8%, 47.4%, 0%, 23.9%) |
| CIE-LAB | lab(48.14, 27.21, -46.90) |
| CIE-LCH | lch(48.14, 54.22, 300.12°) |
| OKLab | oklab(56.38% 0.0394 -0.1328) |
| OKLCH | oklch(56.38% 0.139 286.5) |
| XYZ | xyz(21.2963, 16.9077, 53.1699) |
| Luminance | 0.1691 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 3.92
Slate Blue
#6A5ACD
ΔE00 4.41
Light Indigo
#6D5ACF
ΔE00 4.44
Iris
#6258C4
ΔE00 5.11
Mediumslateblue
#7B68EE
ΔE00 6.79
Deep Lavender
#8D5EB7
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7166C2 #B7C266
analogous
#6689C2 #7166C2 #9F66C2
triadic
#7166C2 #C27166 #66C271
tetradic
#7166C2 #C26689 #B7C266 #66C29F
square
#7166C2 #C26689 #B7C266 #66C29F
split-complementary
#7166C2 #C29F66 #89C266
monochromatic
#3A317C #4F43A8 #7166C2 #9A92D3 #C2BEE5
Accessibility & contrast
On white
4.79
#7166C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.38
#7166C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7166C2
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7166C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7166C2 | 1.00 | 4.79 | 4.38 | 4.79 |
| #FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4275C5
Deuteranopia (green-blind)
#4070C0
Tritanopia (blue-blind)
#59798B
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #7166c2; /* rgb */ color: rgb(113, 102, 194); /* oklch */ color: oklch(56.4% 0.139 286.5);
Tailwind
colors: {
custom: {
50: '#9e91d5',
500: '#7166c2',
950: '#000000',
},
}SCSS
$custom: #7166c2; $custom-light: #9e91d5; $custom-dark: #000000;
JSON
{
"hex": "#7166c2",
"rgb": {
"r": 113,
"g": 102,
"b": 194
},
"hsl": {
"h": 247.174,
"s": 42.991,
"l": 58.039
},
"oklch": {
"l": 0.56381,
"c": 0.13852,
"h": 286.5
},
"luminance": 0.16908
}Semantic roles & 50–950 ramp
primary
#7166C2
secondary
#D0D4B0
accent
#D355C4
background
#FAF8FD
surface
#F3F0FA
border
#CDCBD3
text
#0F0D14
muted
#7F7D83