#512FE2#512FE2
#512FE2 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.247 H 280.3°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).
Color values
| HEX | #512FE2 |
|---|---|
| RGB | rgb(81, 47, 226) |
| HSL | hsl(251, 76%, 54%) |
| HSV | hsv(251, 79%, 89%) |
| CMYK | cmyk(64.2%, 79.2%, 0%, 11.4%) |
| CIE-LAB | lab(36.50, 61.53, -84.34) |
| CIE-LCH | lch(36.50, 104.40, 306.11°) |
| OKLab | oklab(48.03% 0.0443 -0.2435) |
| OKLCH | oklch(48.03% 0.247 280.3) |
| XYZ | xyz(18.1330, 9.2719, 72.7709) |
| Luminance | 0.0927 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley Blue
#5F34E7
ΔE00 2.24
Blurple
#5539CC
ΔE00 3.00
Burple
#6832E3
ΔE00 3.00
Light Royal Blue
#3A2EFE
ΔE00 3.24
Purply Blue
#661AEE
ΔE00 3.38
Purplish Blue
#601EF9
ΔE00 3.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#512FE2 #C0E22F
analogous
#2F66E2 #512FE2 #AB2FE2
triadic
#512FE2 #E2512F #2FE251
tetradic
#512FE2 #E22F66 #C0E22F #2FE2AB
square
#512FE2 #E22F66 #C0E22F #2FE2AB
split-complementary
#512FE2 #E2AB2F #66E22F
monochromatic
#281284 #381ABA #512FE2 #7E65E9 #AB9AF1
Accessibility & contrast
On white
7.36
#512FE2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.85
#512FE2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #512FE2
7.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##512FE2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##512FE2 | 1.00 | 7.36 | 2.85 | 7.36 |
| #FFFFFF | 7.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CE7
Deuteranopia (green-blind)
#004FDF
Tritanopia (blue-blind)
#006689
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #512fe2; /* rgb */ color: rgb(81, 47, 226); /* oklch */ color: oklch(48.0% 0.247 280.3);
Tailwind
colors: {
custom: {
50: '#946eed',
500: '#512fe2',
950: '#000000',
},
}SCSS
$custom: #512fe2; $custom-light: #946eed; $custom-dark: #000000;
JSON
{
"hex": "#512fe2",
"rgb": {
"r": 81,
"g": 47,
"b": 226
},
"hsl": {
"h": 251.397,
"s": 75.527,
"l": 53.529
},
"oklch": {
"l": 0.48026,
"c": 0.24746,
"h": 280.3
},
"luminance": 0.09273
}Semantic roles & 50–950 ramp
primary
#512FE2
secondary
#CEDD90
accent
#F236CE
background
#FAF6FE
surface
#F3ECFD
border
#CDC7D5
text
#0F0716
muted
#7F7A84