#7151B8#7151B8
#7151B8 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.0% C 0.156 H 294.7°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #7151B8 |
|---|---|
| RGB | rgb(113, 81, 184) |
| HSL | hsl(259, 42%, 52%) |
| HSV | hsv(259, 56%, 72%) |
| CMYK | cmyk(38.6%, 56%, 0%, 27.8%) |
| CIE-LAB | lab(42.55, 36.90, -50.05) |
| CIE-LCH | lch(42.55, 62.18, 306.40°) |
| OKLab | oklab(52.01% 0.0653 -0.1421) |
| OKLCH | oklch(52.01% 0.156 294.7) |
| XYZ | xyz(18.4019, 12.8559, 46.8500) |
| Luminance | 0.1286 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 3.49
Iris
#6258C4
ΔE00 4.55
Light Indigo
#6D5ACF
ΔE00 4.75
Slate Blue
#6A5ACD
ΔE00 4.75
Bluey Purple
#6241C7
ΔE00 5.56
Dark Periwinkle
#665FD1
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7151B8 #98B851
analogous
#5165B8 #7151B8 #A551B8
triadic
#7151B8 #B87151 #51B871
tetradic
#7151B8 #B85165 #98B851 #51B8A5
square
#7151B8 #B85165 #98B851 #51B8A5
split-complementary
#7151B8 #B8A551 #65B851
monochromatic
#3C2965 #563B91 #7151B8 #947CCA #B8A8DB
Accessibility & contrast
On white
5.88
#7151B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#7151B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7151B8
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7151B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7151B8 | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F65BB
Deuteranopia (green-blind)
#2963B6
Tritanopia (blue-blind)
#5F677D
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7151b8; /* rgb */ color: rgb(113, 81, 184); /* oklch */ color: oklch(52.0% 0.156 294.7);
Tailwind
colors: {
custom: {
50: '#9e83ce',
500: '#7151b8',
950: '#000000',
},
}SCSS
$custom: #7151b8; $custom-light: #9e83ce; $custom-dark: #000000;
JSON
{
"hex": "#7151b8",
"rgb": {
"r": 113,
"g": 81,
"b": 184
},
"hsl": {
"h": 258.641,
"s": 42.041,
"l": 51.961
},
"oklch": {
"l": 0.52012,
"c": 0.15637,
"h": 294.7
},
"luminance": 0.12856
}Semantic roles & 50–950 ramp
primary
#7151B8
secondary
#BBC99C
accent
#D256AB
background
#FAF8FC
surface
#F3EFF9
border
#CDCAD2
text
#0F0A14
muted
#7F7C82