#7151F2#7151F2
#7151F2 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.4% C 0.228 H 285.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #7151F2 |
|---|---|
| RGB | rgb(113, 81, 242) |
| HSL | hsl(252, 86%, 63%) |
| HSV | hsv(252, 67%, 95%) |
| CMYK | cmyk(53.3%, 66.5%, 0%, 5.1%) |
| CIE-LAB | lab(46.72, 53.30, -76.51) |
| CIE-LCH | lch(46.72, 93.25, 304.86°) |
| OKLab | oklab(56.36% 0.0613 -0.2199) |
| OKLCH | oklch(56.36% 0.228 285.6) |
| XYZ | xyz(25.7747, 15.8050, 85.6797) |
| Luminance | 0.1581 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.24
Purpleish Blue
#6140EF
ΔE00 4.76
Light Indigo
#6D5ACF
ΔE00 5.09
Bluish Purple
#703BE7
ΔE00 5.41
Slate Blue
#6A5ACD
ΔE00 5.46
Dark Periwinkle
#665FD1
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7151F2 #D2F251
analogous
#5182F2 #7151F2 #C151F2
triadic
#7151F2 #F27151 #51F271
tetradic
#7151F2 #F25182 #D2F251 #51F2C1
square
#7151F2 #F25182 #D2F251 #51F2C1
split-complementary
#7151F2 #F2C151 #82F251
monochromatic
#300EBB #4318EE #7151F2 #9F8AF6 #CEC3FB
Accessibility & contrast
On white
5.05
#7151F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.16
#7151F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7151F2
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7151F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7151F2 | 1.00 | 5.05 | 4.16 | 5.05 |
| #FFFFFF | 5.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073F7
Deuteranopia (green-blind)
#006AEF
Tritanopia (blue-blind)
#3A7A9B
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7151f2; /* rgb */ color: rgb(113, 81, 242); /* oklch */ color: oklch(56.4% 0.228 285.6);
Tailwind
colors: {
custom: {
50: '#a584f7',
500: '#7151f2',
950: '#000000',
},
}SCSS
$custom: #7151f2; $custom-light: #a584f7; $custom-dark: #000000;
JSON
{
"hex": "#7151f2",
"rgb": {
"r": 113,
"g": 81,
"b": 242
},
"hsl": {
"h": 251.925,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.56363,
"c": 0.22825,
"h": 285.6
},
"luminance": 0.15806
}Semantic roles & 50–950 ramp
primary
#7151F2
secondary
#E1ECB3
accent
#E303B6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85