#7F54CB#7F54CB
#7F54CB is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.2% C 0.177 H 296.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).
Color values
| HEX | #7F54CB |
|---|---|
| RGB | rgb(127, 84, 203) |
| HSL | hsl(262, 53%, 56%) |
| HSV | hsv(262, 59%, 80%) |
| CMYK | cmyk(37.4%, 58.6%, 0%, 20.4%) |
| CIE-LAB | lab(45.86, 43.59, -55.68) |
| CIE-LCH | lch(45.86, 70.71, 308.05°) |
| OKLab | oklab(55.17% 0.0801 -0.1582) |
| OKLCH | oklch(55.17% 0.177 296.8) |
| XYZ | xyz(22.6995, 15.1641, 58.2194) |
| Luminance | 0.1516 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.93
Light Indigo
#6D5ACF
ΔE00 4.10
Slate Blue
#6A5ACD
ΔE00 4.58
Royal Purple
#7851A9
ΔE00 5.75
Iris
#6258C4
ΔE00 5.84
Deep Lavender
#8D5EB7
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F54CB #A0CB54
analogous
#5465CB #7F54CB #BB54CB
triadic
#7F54CB #CB7F54 #54CB7F
tetradic
#7F54CB #CB5465 #A0CB54 #54CBBB
square
#7F54CB #CB5465 #A0CB54 #54CBBB
split-complementary
#7F54CB #CBBB54 #65CB54
monochromatic
#46267E #6035AD #7F54CB #A283D9 #C5B2E8
Accessibility & contrast
On white
5.21
#7F54CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.03
#7F54CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F54CB
5.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F54CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F54CB | 1.00 | 5.21 | 4.03 | 5.21 |
| #FFFFFF | 5.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B6DCF
Deuteranopia (green-blind)
#256BC8
Tritanopia (blue-blind)
#6D6D87
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7f54cb; /* rgb */ color: rgb(127, 84, 203); /* oklch */ color: oklch(55.2% 0.177 296.8);
Tailwind
colors: {
custom: {
50: '#a986db',
500: '#7f54cb',
950: '#000000',
},
}SCSS
$custom: #7f54cb; $custom-light: #a986db; $custom-dark: #000000;
JSON
{
"hex": "#7f54cb",
"rgb": {
"r": 127,
"g": 84,
"b": 203
},
"hsl": {
"h": 261.681,
"s": 53.363,
"l": 56.275
},
"oklch": {
"l": 0.55173,
"c": 0.17729,
"h": 296.8
},
"luminance": 0.15164
}Semantic roles & 50–950 ramp
primary
#7F54CB
secondary
#C4D6A5
accent
#DD4BA8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83