#7B51F2#7B51F2
#7B51F2 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.2% C 0.228 H 289.1°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #7B51F2 |
|---|---|
| RGB | rgb(123, 81, 242) |
| HSL | hsl(256, 86%, 63%) |
| HSV | hsv(256, 67%, 95%) |
| CMYK | cmyk(49.2%, 66.5%, 0%, 5.1%) |
| CIE-LAB | lab(47.63, 54.95, -74.98) |
| CIE-LCH | lch(47.63, 92.96, 306.24°) |
| OKLab | oklab(57.24% 0.0746 -0.2151) |
| OKLCH | oklch(57.24% 0.228 289.1) |
| XYZ | xyz(27.1332, 16.5054, 85.7434) |
| Luminance | 0.1651 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.97
Light Indigo
#6D5ACF
ΔE00 5.56
Purpleish Blue
#6140EF
ΔE00 5.73
Bluish Purple
#703BE7
ΔE00 5.81
Slate Blue
#6A5ACD
ΔE00 6.04
Mediumslateblue
#7B68EE
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B51F2 #C8F251
analogous
#5177F2 #7B51F2 #CB51F2
triadic
#7B51F2 #F27B51 #51F27B
tetradic
#7B51F2 #F25177 #C8F251 #51F2CB
square
#7B51F2 #F25177 #C8F251 #51F2CB
split-complementary
#7B51F2 #F2CB51 #77F251
monochromatic
#3B0EBB #5018EE #7B51F2 #A68AF6 #D1C3FB
Accessibility & contrast
On white
4.88
#7B51F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.30
#7B51F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B51F2
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B51F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B51F2 | 1.00 | 4.88 | 4.30 | 4.88 |
| #FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#52799B
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7b51f2; /* rgb */ color: rgb(123, 81, 242); /* oklch */ color: oklch(57.2% 0.228 289.1);
Tailwind
colors: {
custom: {
50: '#ab85f7',
500: '#7b51f2',
950: '#000000',
},
}SCSS
$custom: #7b51f2; $custom-light: #ab85f7; $custom-dark: #000000;
JSON
{
"hex": "#7b51f2",
"rgb": {
"r": 123,
"g": 81,
"b": 242
},
"hsl": {
"h": 255.652,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.57238,
"c": 0.22763,
"h": 289.1
},
"luminance": 0.16507
}Semantic roles & 50–950 ramp
primary
#7B51F2
secondary
#DDECB3
accent
#E303A8
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85