#7D54C2#7D54C2
#7D54C2 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.4% C 0.166 H 297.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).
Color values
| HEX | #7D54C2 |
|---|---|
| RGB | rgb(125, 84, 194) |
| HSL | hsl(262, 47%, 55%) |
| HSV | hsv(262, 57%, 76%) |
| CMYK | cmyk(35.6%, 56.7%, 0%, 23.9%) |
| CIE-LAB | lab(45.08, 40.75, -51.75) |
| CIE-LCH | lch(45.08, 65.87, 308.22°) |
| OKLab | oklab(54.37% 0.0775 -0.1467) |
| OKLCH | oklch(54.37% 0.166 297.8) |
| XYZ | xyz(21.3629, 14.5954, 52.7202) |
| Luminance | 0.1460 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 4.35
Light Indigo
#6D5ACF
ΔE00 4.50
Slate Blue
#6A5ACD
ΔE00 4.85
Purpley
#8756E4
ΔE00 5.32
Deep Lavender
#8D5EB7
ΔE00 5.45
Iris
#6258C4
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D54C2 #99C254
analogous
#5462C2 #7D54C2 #B454C2
triadic
#7D54C2 #C27D54 #54C27D
tetradic
#7D54C2 #C25462 #99C254 #54C2B4
square
#7D54C2 #C25462 #99C254 #54C2B4
split-complementary
#7D54C2 #C2B454 #62C254
monochromatic
#442973 #5F39A0 #7D54C2 #9F81D2 #C2AEE2
Accessibility & contrast
On white
5.36
#7D54C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.92
#7D54C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D54C2
5.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D54C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D54C2 | 1.00 | 5.36 | 3.92 | 5.36 |
| #FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F6BC6
Deuteranopia (green-blind)
#2F69C0
Tritanopia (blue-blind)
#6D6B83
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7d54c2; /* rgb */ color: rgb(125, 84, 194); /* oklch */ color: oklch(54.4% 0.166 297.8);
Tailwind
colors: {
custom: {
50: '#a785d5',
500: '#7d54c2',
950: '#000000',
},
}SCSS
$custom: #7d54c2; $custom-light: #a785d5; $custom-dark: #000000;
JSON
{
"hex": "#7d54c2",
"rgb": {
"r": 125,
"g": 84,
"b": 194
},
"hsl": {
"h": 262.364,
"s": 47.414,
"l": 54.51
},
"oklch": {
"l": 0.54366,
"c": 0.1659,
"h": 297.8
},
"luminance": 0.14596
}Semantic roles & 50–950 ramp
primary
#7D54C2
secondary
#BFD0A2
accent
#D751A5
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83