#7B5FF2#7B5FF2
#7B5FF2 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.3% C 0.211 H 286.9°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #7B5FF2 |
|---|---|
| RGB | rgb(123, 95, 242) |
| HSL | hsl(251, 85%, 66%) |
| HSV | hsv(251, 61%, 95%) |
| CMYK | cmyk(49.2%, 60.7%, 0%, 5.1%) |
| CIE-LAB | lab(50.46, 47.35, -70.38) |
| CIE-LCH | lch(50.46, 84.83, 303.93°) |
| OKLab | oklab(59.29% 0.0611 -0.2015) |
| OKLCH | oklch(59.29% 0.211 286.9) |
| XYZ | xyz(28.2829, 18.8049, 86.1266) |
| Luminance | 0.1881 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.55
Purpley
#8756E4
ΔE00 3.88
Light Indigo
#6D5ACF
ΔE00 5.76
Dark Periwinkle
#665FD1
ΔE00 5.90
Slate Blue
#6A5ACD
ΔE00 6.23
Lighter Purple
#A55AF4
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B5FF2 #D6F25F
analogous
#5F8CF2 #7B5FF2 #C55FF2
triadic
#7B5FF2 #F27B5F #5FF27B
tetradic
#7B5FF2 #F25F8C #D6F25F #5FF2C5
square
#7B5FF2 #F25F8C #D6F25F #5FF2C5
split-complementary
#7B5FF2 #F2C55F #8CF25F
monochromatic
#3310C6 #4C26ED #7B5FF2 #AA98F7 #D8D0FB
Accessibility & contrast
On white
4.41
#7B5FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.76
#7B5FF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7B5FF2
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B5FF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7B5FF2 | 1.00 | 4.41 | 4.76 | 4.76 |
| #FFFFFF | 4.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#0074EF
Tritanopia (blue-blind)
#5082A0
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #7b5ff2; /* rgb */ color: rgb(123, 95, 242); /* oklch */ color: oklch(59.3% 0.211 286.9);
Tailwind
colors: {
custom: {
50: '#aa8ef7',
500: '#7b5ff2',
950: '#000000',
},
}SCSS
$custom: #7b5ff2; $custom-light: #aa8ef7; $custom-dark: #000000;
JSON
{
"hex": "#7b5ff2",
"rgb": {
"r": 123,
"g": 95,
"b": 242
},
"hsl": {
"h": 251.429,
"s": 84.971,
"l": 66.078
},
"oklch": {
"l": 0.59286,
"c": 0.21058,
"h": 286.9
},
"luminance": 0.18806
}Semantic roles & 50–950 ramp
primary
#7B5FF2
secondary
#E5EFBE
accent
#E104B7
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85