#8151B7#8151B7
#8151B7 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.6% C 0.158 H 303.2°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).
Color values
| HEX | #8151B7 |
|---|---|
| RGB | rgb(129, 81, 183) |
| HSL | hsl(268, 41%, 52%) |
| HSV | hsv(268, 56%, 72%) |
| CMYK | cmyk(29.5%, 55.7%, 0%, 28.2%) |
| CIE-LAB | lab(44.19, 40.61, -46.73) |
| CIE-LCH | lch(44.19, 61.91, 310.99°) |
| OKLab | oklab(53.6% 0.0863 -0.1319) |
| OKLCH | oklch(53.6% 0.158 303.2) |
| XYZ | xyz(20.5410, 13.9709, 46.4051) |
| Luminance | 0.1397 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.75
Deep Lavender
#8D5EB7
ΔE00 4.70
Purply
#983FB2
ΔE00 6.13
Light Indigo
#6D5ACF
ΔE00 6.79
Amethyst
#9B5FC0
ΔE00 6.93
Slate Blue
#6A5ACD
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8151B7 #87B751
analogous
#5154B7 #8151B7 #B451B7
triadic
#8151B7 #B78151 #51B781
tetradic
#8151B7 #B75154 #87B751 #51B7B4
square
#8151B7 #B75154 #87B751 #51B7B4
split-complementary
#8151B7 #B7B451 #54B751
monochromatic
#452964 #633B8F #8151B7 #A07CC9 #C0A8DB
Accessibility & contrast
On white
5.53
#8151B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.79
#8151B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8151B7
5.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8151B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8151B7 | 1.00 | 5.53 | 3.79 | 5.53 |
| #FFFFFF | 5.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A67BA
Deuteranopia (green-blind)
#3B68B5
Tritanopia (blue-blind)
#77657C
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8151b7; /* rgb */ color: rgb(129, 81, 183); /* oklch */ color: oklch(53.6% 0.158 303.2);
Tailwind
colors: {
custom: {
50: '#a984cd',
500: '#8151b7',
950: '#000000',
},
}SCSS
$custom: #8151b7; $custom-light: #a984cd; $custom-dark: #000000;
JSON
{
"hex": "#8151b7",
"rgb": {
"r": 129,
"g": 81,
"b": 183
},
"hsl": {
"h": 268.235,
"s": 41.463,
"l": 51.765
},
"oklch": {
"l": 0.53599,
"c": 0.15759,
"h": 303.2
},
"luminance": 0.13971
}Semantic roles & 50–950 ramp
primary
#8151B7
secondary
#B3C89C
accent
#D15798
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B13
muted
#7F7C82