#812DAF#812DAF
#812DAF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.4% C 0.198 H 310.5°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).
Color values
| HEX | #812DAF |
|---|---|
| RGB | rgb(129, 45, 175) |
| HSL | hsl(279, 59%, 43%) |
| HSV | hsv(279, 74%, 69%) |
| CMYK | cmyk(26.3%, 74.3%, 0%, 31.4%) |
| CIE-LAB | lab(37.19, 56.42, -53.28) |
| CIE-LCH | lch(37.19, 77.60, 316.64°) |
| OKLab | oklab(48.37% 0.1287 -0.1509) |
| OKLCH | oklch(48.37% 0.198 310.5) |
| XYZ | xyz(17.7280, 9.6394, 41.4758) |
| Luminance | 0.0964 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.86
Rebeccapurple
#663399
ΔE00 5.47
Darkviolet
#9400D3
ΔE00 5.55
Darkorchid
#9932CC
ΔE00 5.95
Purply
#983FB2
ΔE00 6.26
Blueviolet
#8A2BE2
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#812DAF #5BAF2D
analogous
#402DAF #812DAF #AF2D9C
triadic
#812DAF #AF812D #2DAF81
tetradic
#812DAF #AF402D #5BAF2D #2D9CAF
square
#812DAF #AF402D #5BAF2D #2D9CAF
split-complementary
#812DAF #9CAF2D #2DAF40
monochromatic
#39144E #5D207E #812DAF #A049D0 #BA7ADD
Accessibility & contrast
On white
7.17
#812DAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.93
#812DAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #812DAF
7.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##812DAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##812DAF | 1.00 | 7.17 | 2.93 | 7.17 |
| #FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#1159AC
Tritanopia (blue-blind)
#7B4B6C
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #812daf; /* rgb */ color: rgb(129, 45, 175); /* oklch */ color: oklch(48.4% 0.198 310.5);
Tailwind
colors: {
custom: {
50: '#aa6ec8',
500: '#812daf',
950: '#000000',
},
}SCSS
$custom: #812daf; $custom-light: #aa6ec8; $custom-dark: #000000;
JSON
{
"hex": "#812daf",
"rgb": {
"r": 129,
"g": 45,
"b": 175
},
"hsl": {
"h": 278.769,
"s": 59.091,
"l": 43.137
},
"oklch": {
"l": 0.4837,
"c": 0.19834,
"h": 310.5
},
"luminance": 0.09639
}Semantic roles & 50–950 ramp
primary
#812DAF
secondary
#90C573
accent
#E2467D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82