#974DC7#974DC7
#974DC7 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.5% C 0.188 H 309.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #974DC7 |
|---|---|
| RGB | rgb(151, 77, 199) |
| HSL | hsl(276, 52%, 54%) |
| HSV | hsv(276, 61%, 78%) |
| CMYK | cmyk(24.1%, 61.3%, 0%, 22%) |
| CIE-LAB | lab(46.99, 51.91, -51.41) |
| CIE-LCH | lch(46.99, 73.06, 315.28°) |
| OKLab | oklab(56.53% 0.12 -0.1449) |
| OKLCH | oklch(56.53% 0.188 309.6) |
| XYZ | xyz(25.7232, 16.0111, 55.7571) |
| Luminance | 0.1601 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 4.75
Darkorchid
#9932CC
ΔE00 4.93
Amethyst
#9B5FC0
ΔE00 5.07
Deep Lavender
#8D5EB7
ΔE00 5.23
Lightish Purple
#A552E6
ΔE00 5.44
Purpley
#8756E4
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#974DC7 #7DC74D
analogous
#5A4DC7 #974DC7 #C74DBA
triadic
#974DC7 #C7974D #4DC797
tetradic
#974DC7 #C75A4D #7DC74D #4DBAC7
square
#974DC7 #C75A4D #7DC74D #4DBAC7
split-complementary
#974DC7 #BAC74D #4DC75A
monochromatic
#552575 #7733A3 #974DC7 #B27CD6 #CDAAE4
Accessibility & contrast
On white
5.00
#974DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.20
#974DC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #974DC7
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##974DC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##974DC7 | 1.00 | 5.00 | 4.20 | 5.00 |
| #FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#166CCB
Deuteranopia (green-blind)
#3D71C4
Tritanopia (blue-blind)
#906583
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #974dc7; /* rgb */ color: rgb(151, 77, 199); /* oklch */ color: oklch(56.5% 0.188 309.6);
Tailwind
colors: {
custom: {
50: '#b983d9',
500: '#974dc7',
950: '#000000',
},
}SCSS
$custom: #974dc7; $custom-light: #b983d9; $custom-dark: #000000;
JSON
{
"hex": "#974dc7",
"rgb": {
"r": 151,
"g": 77,
"b": 199
},
"hsl": {
"h": 276.393,
"s": 52.137,
"l": 54.118
},
"oklch": {
"l": 0.56534,
"c": 0.1881,
"h": 309.6
},
"luminance": 0.16011
}Semantic roles & 50–950 ramp
primary
#974DC7
secondary
#B2D29E
accent
#DC4C85
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#120B15
muted
#817C83