#7F56CB#7F56CB
#7F56CB is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.5% C 0.174 H 296.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).
Color values
| HEX | #7F56CB |
|---|---|
| RGB | rgb(127, 86, 203) |
| HSL | hsl(261, 53%, 57%) |
| HSV | hsv(261, 58%, 80%) |
| CMYK | cmyk(37.4%, 57.6%, 0%, 20.4%) |
| CIE-LAB | lab(46.28, 42.47, -54.99) |
| CIE-LCH | lch(46.28, 69.48, 307.68°) |
| OKLab | oklab(55.48% 0.0777 -0.1562) |
| OKLCH | oklch(55.48% 0.174 296.4) |
| XYZ | xyz(22.8569, 15.4790, 58.2718) |
| Luminance | 0.1548 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.83
Light Indigo
#6D5ACF
ΔE00 3.89
Slate Blue
#6A5ACD
ΔE00 4.39
Iris
#6258C4
ΔE00 5.74
Deep Lavender
#8D5EB7
ΔE00 5.80
Royal Purple
#7851A9
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F56CB #A2CB56
analogous
#5668CB #7F56CB #BA56CB
triadic
#7F56CB #CB7F56 #56CB7F
tetradic
#7F56CB #CB5668 #A2CB56 #56CBBA
square
#7F56CB #CB5668 #A2CB56 #56CBBA
split-complementary
#7F56CB #CBBA56 #68CB56
monochromatic
#46277F #6036AE #7F56CB #A285D9 #C6B4E8
Accessibility & contrast
On white
5.13
#7F56CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#7F56CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F56CB
5.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F56CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F56CB | 1.00 | 5.13 | 4.10 | 5.13 |
| #FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#166ECF
Deuteranopia (green-blind)
#296CC8
Tritanopia (blue-blind)
#6D6F88
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7f56cb; /* rgb */ color: rgb(127, 86, 203); /* oklch */ color: oklch(55.5% 0.174 296.4);
Tailwind
colors: {
custom: {
50: '#a987db',
500: '#7f56cb',
950: '#000000',
},
}SCSS
$custom: #7f56cb; $custom-light: #a987db; $custom-dark: #000000;
JSON
{
"hex": "#7f56cb",
"rgb": {
"r": 127,
"g": 86,
"b": 203
},
"hsl": {
"h": 261.026,
"s": 52.941,
"l": 56.667
},
"oklch": {
"l": 0.55484,
"c": 0.17441,
"h": 296.4
},
"luminance": 0.15479
}Semantic roles & 50–950 ramp
primary
#7F56CB
secondary
#C6D6A6
accent
#DC4BAA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83