#7B56DB#7B56DB
#7B56DB is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.2% C 0.194 H 291.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #7B56DB |
|---|---|
| RGB | rgb(123, 86, 219) |
| HSL | hsl(257, 65%, 60%) |
| HSV | hsv(257, 61%, 86%) |
| CMYK | cmyk(43.8%, 60.7%, 0%, 14.1%) |
| CIE-LAB | lab(46.95, 45.92, -63.10) |
| CIE-LCH | lch(46.95, 78.04, 306.04°) |
| OKLab | oklab(56.22% 0.0719 -0.1801) |
| OKLCH | oklch(56.22% 0.194 291.8) |
| XYZ | xyz(24.2788, 15.9802, 68.8094) |
| Luminance | 0.1598 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.43
Light Indigo
#6D5ACF
ΔE00 3.21
Slate Blue
#6A5ACD
ΔE00 3.80
Dark Periwinkle
#665FD1
ΔE00 4.95
Iris
#6258C4
ΔE00 5.59
Mediumslateblue
#7B68EE
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B56DB #B6DB56
analogous
#5673DB #7B56DB #BE56DB
triadic
#7B56DB #DB7B56 #56DB7B
tetradic
#7B56DB #DB5673 #B6DB56 #56DBBE
square
#7B56DB #DB5673 #B6DB56 #56DBBE
split-complementary
#7B56DB #DBBE56 #73DB56
monochromatic
#412097 #572BC9 #7B56DB #A288E6 #CABBF0
Accessibility & contrast
On white
5.00
#7B56DB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.20
#7B56DB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7B56DB
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B56DB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7B56DB | 1.00 | 5.00 | 4.20 | 5.00 |
| #FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#5F7490
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7b56db; /* rgb */ color: rgb(123, 86, 219); /* oklch */ color: oklch(56.2% 0.194 291.8);
Tailwind
colors: {
custom: {
50: '#a887e7',
500: '#7b56db',
950: '#000000',
},
}SCSS
$custom: #7b56db; $custom-light: #a887e7; $custom-dark: #000000;
JSON
{
"hex": "#7b56db",
"rgb": {
"r": 123,
"g": 86,
"b": 219
},
"hsl": {
"h": 256.692,
"s": 64.878,
"l": 59.804
},
"oklch": {
"l": 0.56216,
"c": 0.19394,
"h": 291.8
},
"luminance": 0.15981
}Semantic roles & 50–950 ramp
primary
#7B56DB
secondary
#D2E0AD
accent
#E840B9
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84