#7F4BAF#7F4BAF
#7F4BAF is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.9% C 0.157 H 305.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).
Color values
| HEX | #7F4BAF |
|---|---|
| RGB | rgb(127, 75, 175) |
| HSL | hsl(271, 40%, 49%) |
| HSV | hsv(271, 57%, 69%) |
| CMYK | cmyk(27.4%, 57.1%, 0%, 31.4%) |
| CIE-LAB | lab(42.22, 41.45, -45.20) |
| CIE-LCH | lch(42.22, 61.33, 312.52°) |
| OKLab | oklab(51.94% 0.0913 -0.1274) |
| OKLCH | oklch(51.94% 0.157 305.6) |
| XYZ | xyz(19.0047, 12.6395, 41.9876) |
| Luminance | 0.1264 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.41
Purply
#983FB2
ΔE00 5.34
Deep Lavender
#8D5EB7
ΔE00 6.18
Darkorchid
#9932CC
ΔE00 6.85
Bluey Purple
#6241C7
ΔE00 7.70
Medium Purple
#9E43A2
ΔE00 7.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F4BAF #7BAF4B
analogous
#4D4BAF #7F4BAF #AF4BAD
triadic
#7F4BAF #AF7F4B #4BAF7F
tetradic
#7F4BAF #AF4D4B #7BAF4B #4BADAF
square
#7F4BAF #AF4D4B #7BAF4B #4BADAF
split-complementary
#7F4BAF #ADAF4B #4BAF4D
monochromatic
#412659 #603984 #7F4BAF #9D74C3 #BB9FD6
Accessibility & contrast
On white
5.95
#7F4BAF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.53
#7F4BAF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F4BAF
5.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F4BAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F4BAF | 1.00 | 5.95 | 3.53 | 5.95 |
| #FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2562B2
Deuteranopia (green-blind)
#3964AD
Tritanopia (blue-blind)
#775E76
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #7f4baf; /* rgb */ color: rgb(127, 75, 175); /* oklch */ color: oklch(51.9% 0.157 305.6);
Tailwind
colors: {
custom: {
50: '#a77fc7',
500: '#7f4baf',
950: '#000000',
},
}SCSS
$custom: #7f4baf; $custom-light: #a77fc7; $custom-dark: #000000;
JSON
{
"hex": "#7f4baf",
"rgb": {
"r": 127,
"g": 75,
"b": 175
},
"hsl": {
"h": 271.2,
"s": 40,
"l": 49.02
},
"oklch": {
"l": 0.5194,
"c": 0.15676,
"h": 305.6
},
"luminance": 0.12639
}Semantic roles & 50–950 ramp
primary
#7F4BAF
secondary
#AAC293
accent
#D05892
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82