#7151C2#7151C2
#7151C2 is a mid, vivid violet. Relative luminance 0.133; OKLCH L 52.7% C 0.169 H 292.7°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).
Color values
| HEX | #7151C2 |
|---|---|
| RGB | rgb(113, 81, 194) |
| HSL | hsl(257, 48%, 54%) |
| HSV | hsv(257, 58%, 76%) |
| CMYK | cmyk(41.8%, 58.2%, 0%, 23.9%) |
| CIE-LAB | lab(43.20, 39.67, -54.83) |
| CIE-LCH | lch(43.20, 67.68, 305.89°) |
| OKLab | oklab(52.7% 0.0653 -0.1561) |
| OKLCH | oklch(52.7% 0.169 292.7) |
| XYZ | xyz(19.4874, 13.2901, 52.5670) |
| Luminance | 0.1329 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.55
Slate Blue
#6A5ACD
ΔE00 3.64
Iris
#6258C4
ΔE00 3.86
Bluey Purple
#6241C7
ΔE00 4.94
Royal Purple
#7851A9
ΔE00 4.98
Dark Periwinkle
#665FD1
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7151C2 #A2C251
analogous
#516AC2 #7151C2 #AA51C2
triadic
#7151C2 #C27151 #51C271
tetradic
#7151C2 #C2516A #A2C251 #51C2AA
square
#7151C2 #C2516A #A2C251 #51C2AA
split-complementary
#7151C2 #C2AA51 #6AC251
monochromatic
#3C2871 #55379E #7151C2 #967ED2 #BBACE2
Accessibility & contrast
On white
5.74
#7151C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.66
#7151C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7151C2
5.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7151C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7151C2 | 1.00 | 5.74 | 3.66 | 5.74 |
| #FFFFFF | 5.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0468C6
Deuteranopia (green-blind)
#1764C0
Tritanopia (blue-blind)
#5B6A82
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #7151c2; /* rgb */ color: rgb(113, 81, 194); /* oklch */ color: oklch(52.7% 0.169 292.7);
Tailwind
colors: {
custom: {
50: '#9f83d5',
500: '#7151c2',
950: '#000000',
},
}SCSS
$custom: #7151c2; $custom-light: #9f83d5; $custom-dark: #000000;
JSON
{
"hex": "#7151c2",
"rgb": {
"r": 113,
"g": 81,
"b": 194
},
"hsl": {
"h": 256.991,
"s": 48.085,
"l": 53.922
},
"oklch": {
"l": 0.527,
"c": 0.16925,
"h": 292.7
},
"luminance": 0.13291
}Semantic roles & 50–950 ramp
primary
#7151C2
secondary
#C2D09F
accent
#D850B1
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B14
muted
#7F7C83