#7F56CC#7F56CC
#7F56CC is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.6% C 0.176 H 296.2°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #7F56CC |
|---|---|
| RGB | rgb(127, 86, 204) |
| HSL | hsl(261, 54%, 57%) |
| HSV | hsv(261, 58%, 80%) |
| CMYK | cmyk(37.7%, 57.8%, 0%, 20%) |
| CIE-LAB | lab(46.35, 42.73, -55.47) |
| CIE-LCH | lch(46.35, 70.02, 307.61°) |
| OKLab | oklab(55.55% 0.0776 -0.1576) |
| OKLCH | oklch(55.55% 0.176 296.2) |
| XYZ | xyz(22.9765, 15.5268, 58.9015) |
| Luminance | 0.1553 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.69
Light Indigo
#6D5ACF
ΔE00 3.84
Slate Blue
#6A5ACD
ΔE00 4.34
Iris
#6258C4
ΔE00 5.73
Dark Periwinkle
#665FD1
ΔE00 5.87
Deep Lavender
#8D5EB7
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F56CC #A3CC56
analogous
#5668CC #7F56CC #BA56CC
triadic
#7F56CC #CC7F56 #56CC7F
tetradic
#7F56CC #CC5668 #A3CC56 #56CCBA
square
#7F56CC #CC5668 #A3CC56 #56CCBA
split-complementary
#7F56CC #CCBA56 #68CC56
monochromatic
#462781 #6035B0 #7F56CC #A385DA #C6B4E8
Accessibility & contrast
On white
5.12
#7F56CC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.11
#7F56CC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F56CC
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F56CC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F56CC | 1.00 | 5.12 | 4.11 | 5.12 |
| #FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#136ED0
Deuteranopia (green-blind)
#276CC9
Tritanopia (blue-blind)
#6C6F89
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7f56cc; /* rgb */ color: rgb(127, 86, 204); /* oklch */ color: oklch(55.6% 0.176 296.2);
Tailwind
colors: {
custom: {
50: '#a987dc',
500: '#7f56cc',
950: '#000000',
},
}SCSS
$custom: #7f56cc; $custom-light: #a987dc; $custom-dark: #000000;
JSON
{
"hex": "#7f56cc",
"rgb": {
"r": 127,
"g": 86,
"b": 204
},
"hsl": {
"h": 260.847,
"s": 53.636,
"l": 56.863
},
"oklch": {
"l": 0.55552,
"c": 0.17565,
"h": 296.2
},
"luminance": 0.15527
}Semantic roles & 50–950 ramp
primary
#7F56CC
secondary
#C6D7A7
accent
#DD4BAA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83