#7B5FEC#7B5FEC
#7B5FEC is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 58.8% C 0.203 H 287.6°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).
Color values
| HEX | #7B5FEC |
|---|---|
| RGB | rgb(123, 95, 236) |
| HSL | hsl(252, 79%, 65%) |
| HSV | hsv(252, 60%, 93%) |
| CMYK | cmyk(47.9%, 59.7%, 0%, 7.5%) |
| CIE-LAB | lab(50.04, 45.64, -67.70) |
| CIE-LCH | lch(50.04, 81.65, 303.98°) |
| OKLab | oklab(58.85% 0.0614 -0.1936) |
| OKLCH | oklch(58.85% 0.203 287.6) |
| XYZ | xyz(27.3965, 18.4503, 81.4583) |
| Luminance | 0.1845 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.65
Purpley
#8756E4
ΔE00 3.48
Light Indigo
#6D5ACF
ΔE00 5.06
Dark Periwinkle
#665FD1
ΔE00 5.31
Slate Blue
#6A5ACD
ΔE00 5.55
Mediumpurple
#9370DB
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7B5FEC #D0EC5F
analogous
#5F89EC #7B5FEC #C25FEC
triadic
#7B5FEC #EC7B5F #5FEC7B
tetradic
#7B5FEC #EC5F89 #D0EC5F #5FECC2
square
#7B5FEC #EC5F89 #D0EC5F #5FECC2
split-complementary
#7B5FEC #ECC25F #89EC5F
monochromatic
#3716BA #4E28E6 #7B5FEC #A896F2 #D5CCF9
Accessibility & contrast
On white
4.48
#7B5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.69
#7B5FEC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #7B5FEC
4.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7B5FEC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##7B5FEC | 1.00 | 4.48 | 4.69 | 4.69 |
| #FFFFFF | 4.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#007AF1
Deuteranopia (green-blind)
#0073E9
Tritanopia (blue-blind)
#55809D
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #7b5fec; /* rgb */ color: rgb(123, 95, 236); /* oklch */ color: oklch(58.8% 0.203 287.6);
Tailwind
colors: {
custom: {
50: '#a98df3',
500: '#7b5fec',
950: '#000000',
},
}SCSS
$custom: #7b5fec; $custom-light: #a98df3; $custom-dark: #000000;
JSON
{
"hex": "#7b5fec",
"rgb": {
"r": 123,
"g": 95,
"b": 236
},
"hsl": {
"h": 251.915,
"s": 78.771,
"l": 64.902
},
"oklch": {
"l": 0.58846,
"c": 0.20315,
"h": 287.6
},
"luminance": 0.18452
}Semantic roles & 50–950 ramp
primary
#7B5FEC
secondary
#E2EBBB
accent
#DB0AB2
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110C17
muted
#807D85