#7D51BB#7D51BB
#7D51BB is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.4% C 0.162 H 300.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).
Color values
| HEX | #7D51BB |
|---|---|
| RGB | rgb(125, 81, 187) |
| HSL | hsl(265, 44%, 53%) |
| HSV | hsv(265, 57%, 73%) |
| CMYK | cmyk(33.2%, 56.7%, 0%, 26.7%) |
| CIE-LAB | lab(43.99, 40.62, -49.41) |
| CIE-LCH | lch(43.99, 63.97, 309.42°) |
| OKLab | oklab(53.43% 0.0812 -0.1398) |
| OKLCH | oklch(53.43% 0.162 300.1) |
| XYZ | xyz(20.3674, 13.8325, 48.6010) |
| Luminance | 0.1383 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.15
Deep Lavender
#8D5EB7
ΔE00 5.46
Light Indigo
#6D5ACF
ΔE00 5.68
Slate Blue
#6A5ACD
ΔE00 5.93
Iris
#6258C4
ΔE00 6.43
Purpley
#8756E4
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7D51BB #8FBB51
analogous
#515ABB #7D51BB #B251BB
triadic
#7D51BB #BB7D51 #51BB7D
tetradic
#7D51BB #BB515A #8FBB51 #51BBB2
square
#7D51BB #BB515A #8FBB51 #51BBB2
split-complementary
#7D51BB #BBB251 #5ABB51
monochromatic
#432969 #603A95 #7D51BB #9E7DCC #BFA9DD
Accessibility & contrast
On white
5.58
#7D51BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.77
#7D51BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7D51BB
5.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7D51BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7D51BB | 1.00 | 5.58 | 3.77 | 5.58 |
| #FFFFFF | 5.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2268BF
Deuteranopia (green-blind)
#3367B9
Tritanopia (blue-blind)
#70667E
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #7d51bb; /* rgb */ color: rgb(125, 81, 187); /* oklch */ color: oklch(53.4% 0.162 300.1);
Tailwind
colors: {
custom: {
50: '#a683d0',
500: '#7d51bb',
950: '#000000',
},
}SCSS
$custom: #7d51bb; $custom-light: #a683d0; $custom-dark: #000000;
JSON
{
"hex": "#7d51bb",
"rgb": {
"r": 125,
"g": 81,
"b": 187
},
"hsl": {
"h": 264.906,
"s": 43.802,
"l": 52.549
},
"oklch": {
"l": 0.53429,
"c": 0.16169,
"h": 300.1
},
"luminance": 0.13833
}Semantic roles & 50–950 ramp
primary
#7D51BB
secondary
#B8CB9D
accent
#D4549F
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82