#7B51DC#7B51DC
#7B51DC is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.5% C 0.202 H 292.5°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #7B51DC |
|---|---|
| RGB | rgb(123, 81, 220) |
| HSL | hsl(258, 67%, 59%) |
| HSV | hsv(258, 63%, 86%) |
| CMYK | cmyk(44.1%, 63.2%, 0%, 13.7%) |
| CIE-LAB | lab(45.99, 48.94, -65.22) |
| CIE-LCH | lch(45.99, 81.54, 306.88°) |
| OKLab | oklab(55.54% 0.0772 -0.1864) |
| OKLCH | oklch(55.54% 0.202 292.5) |
| XYZ | xyz(24.0255, 15.2624, 69.3763) |
| Luminance | 0.1526 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.85
Light Indigo
#6D5ACF
ΔE00 3.88
Slate Blue
#6A5ACD
ΔE00 4.40
Bluish Purple
#703BE7
ΔE00 5.25
Dark Periwinkle
#665FD1
ΔE00 5.78
Purpleish Blue
#6140EF
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B51DC #B2DC51
analogous
#516DDC #7B51DC #C051DC
triadic
#7B51DC #DC7B51 #51DC7B
tetradic
#7B51DC #DC516D #B2DC51 #51DCC0
square
#7B51DC #DC516D #B2DC51 #51DCC0
split-complementary
#7B51DC #DCC051 #6DDC51
monochromatic
#421E95 #5828C8 #7B51DC #A284E6 #C8B7F0
Accessibility & contrast
On white
5.18
#7B51DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.05
#7B51DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B51DC
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B51DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B51DC | 1.00 | 5.18 | 4.05 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#5F718F
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7b51dc; /* rgb */ color: rgb(123, 81, 220); /* oklch */ color: oklch(55.5% 0.202 292.5);
Tailwind
colors: {
custom: {
50: '#a884e8',
500: '#7b51dc',
950: '#000000',
},
}SCSS
$custom: #7b51dc; $custom-light: #a884e8; $custom-dark: #000000;
JSON
{
"hex": "#7b51dc",
"rgb": {
"r": 123,
"g": 81,
"b": 220
},
"hsl": {
"h": 258.129,
"s": 66.507,
"l": 59.02
},
"oklch": {
"l": 0.55543,
"c": 0.20172,
"h": 292.5
},
"luminance": 0.15263
}Semantic roles & 50–950 ramp
primary
#7B51DC
secondary
#CFE0A9
accent
#E93EB6
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84