#7152C7#7152C7
#7152C7 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.2% C 0.174 H 291.6°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).
Color values
| HEX | #7152C7 |
|---|---|
| RGB | rgb(113, 82, 199) |
| HSL | hsl(256, 51%, 55%) |
| HSV | hsv(256, 59%, 78%) |
| CMYK | cmyk(43.2%, 58.8%, 0%, 22%) |
| CIE-LAB | lab(43.75, 40.50, -56.83) |
| CIE-LCH | lch(43.75, 69.79, 305.47°) |
| OKLab | oklab(53.22% 0.0641 -0.162) |
| OKLCH | oklch(53.22% 0.174 291.6) |
| XYZ | xyz(20.1333, 13.6682, 55.5992) |
| Luminance | 0.1367 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.88
Slate Blue
#6A5ACD
ΔE00 3.04
Iris
#6258C4
ΔE00 3.58
Dark Periwinkle
#665FD1
ΔE00 5.00
Bluey Purple
#6241C7
ΔE00 5.08
Royal Purple
#7851A9
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7152C7 #A8C752
analogous
#526EC7 #7152C7 #AB52C7
triadic
#7152C7 #C77152 #52C771
tetradic
#7152C7 #C7526E #A8C752 #52C7AB
square
#7152C7 #C7526E #A8C752 #52C7AB
split-complementary
#7152C7 #C7AB52 #6EC752
monochromatic
#3C2778 #5436A6 #7152C7 #9780D6 #BDAEE5
Accessibility & contrast
On white
5.62
#7152C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.73
#7152C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7152C7
5.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7152C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7152C7 | 1.00 | 5.62 | 3.73 | 5.62 |
| #FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#0A65C4
Tritanopia (blue-blind)
#596C85
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #7152c7; /* rgb */ color: rgb(113, 82, 199); /* oklch */ color: oklch(53.2% 0.174 291.6);
Tailwind
colors: {
custom: {
50: '#9f84d9',
500: '#7152c7',
950: '#000000',
},
}SCSS
$custom: #7152c7; $custom-light: #9f84d9; $custom-dark: #000000;
JSON
{
"hex": "#7152c7",
"rgb": {
"r": 113,
"g": 82,
"b": 199
},
"hsl": {
"h": 255.897,
"s": 51.092,
"l": 55.098
},
"oklch": {
"l": 0.53215,
"c": 0.17422,
"h": 291.6
},
"luminance": 0.13669
}Semantic roles & 50–950 ramp
primary
#7152C7
secondary
#C6D3A2
accent
#DB4DB5
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B15
muted
#7F7C83