#8740AF#8740AF
#8740AF is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.176 H 311.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).
Color values
| HEX | #8740AF |
|---|---|
| RGB | rgb(135, 64, 175) |
| HSL | hsl(278, 46%, 47%) |
| HSV | hsv(278, 63%, 69%) |
| CMYK | cmyk(22.9%, 63.4%, 0%, 31.4%) |
| CIE-LAB | lab(41.08, 49.18, -46.97) |
| CIE-LCH | lch(41.08, 68.00, 316.32°) |
| OKLab | oklab(51.33% 0.1158 -0.1323) |
| OKLCH | oklch(51.33% 0.176 311.2) |
| XYZ | xyz(19.5615, 11.9133, 41.8181) |
| Luminance | 0.1191 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.33
Darkorchid
#9932CC
ΔE00 5.02
Royal Purple
#7851A9
ΔE00 5.25
Medium Purple
#9E43A2
ΔE00 6.40
Barney
#AC1DB8
ΔE00 6.97
Purple (survey)
#7E1E9C
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8740AF #68AF40
analogous
#4F40AF #8740AF #AF40A0
triadic
#8740AF #AF8740 #40AF87
tetradic
#8740AF #AF4F40 #68AF40 #40A0AF
square
#8740AF #AF4F40 #68AF40 #40A0AF
split-complementary
#8740AF #A0AF40 #40AF4F
monochromatic
#421F55 #643082 #8740AF #A465C7 #BE92D7
Accessibility & contrast
On white
6.21
#8740AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#8740AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8740AF
6.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8740AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8740AF | 1.00 | 6.21 | 3.38 | 6.21 |
| #FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0A5DB2
Deuteranopia (green-blind)
#3562AC
Tritanopia (blue-blind)
#825672
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #8740af; /* rgb */ color: rgb(135, 64, 175); /* oklch */ color: oklch(51.3% 0.176 311.2);
Tailwind
colors: {
custom: {
50: '#ad79c7',
500: '#8740af',
950: '#000000',
},
}SCSS
$custom: #8740af; $custom-light: #ad79c7; $custom-dark: #000000;
JSON
{
"hex": "#8740af",
"rgb": {
"r": 135,
"g": 64,
"b": 175
},
"hsl": {
"h": 278.378,
"s": 46.444,
"l": 46.863
},
"oklch": {
"l": 0.5133,
"c": 0.17583,
"h": 311.2
},
"luminance": 0.11913
}Semantic roles & 50–950 ramp
primary
#8740AF
secondary
#9DC388
accent
#D65281
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82