#7312E2#7312E2
#7312E2 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 49.2% C 0.263 H 294.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).
Color values
| HEX | #7312E2 |
|---|---|
| RGB | rgb(115, 18, 226) |
| HSL | hsl(268, 85%, 48%) |
| HSV | hsv(268, 92%, 89%) |
| CMYK | cmyk(49.1%, 92%, 0%, 11.4%) |
| CIE-LAB | lab(37.06, 73.63, -83.31) |
| CIE-LCH | lch(37.06, 111.19, 311.47°) |
| OKLab | oklab(49.23% 0.1082 -0.2392) |
| OKLCH | oklch(49.23% 0.263 294.3) |
| XYZ | xyz(21.0102, 9.5678, 72.6765) |
| Luminance | 0.0957 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply Blue
#661AEE
ΔE00 2.17
Blue Violet
#5D06E9
ΔE00 2.99
Blue Purple
#5A06EF
ΔE00 3.30
Purplish Blue
#601EF9
ΔE00 3.55
Burple
#6832E3
ΔE00 3.66
Purple Blue
#5D21D0
ΔE00 3.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7312E2 #81E212
analogous
#1219E2 #7312E2 #DB12E2
triadic
#7312E2 #E27312 #12E273
tetradic
#7312E2 #E21219 #81E212 #12E2DB
square
#7312E2 #E21219 #81E212 #12E2DB
split-complementary
#7312E2 #E2DB12 #19E212
monochromatic
#390971 #560DA9 #7312E2 #9341F0 #B37AF4
Accessibility & contrast
On white
7.21
#7312E2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.91
#7312E2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7312E2
7.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7312E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7312E2 | 1.00 | 7.21 | 2.91 | 7.21 |
| #FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059E7
Deuteranopia (green-blind)
#0054DF
Tritanopia (blue-blind)
#4F5B85
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7312e2; /* rgb */ color: rgb(115, 18, 226); /* oklch */ color: oklch(49.2% 0.263 294.3);
Tailwind
colors: {
custom: {
50: '#a766ed',
500: '#7312e2',
950: '#000000',
},
}SCSS
$custom: #7312e2; $custom-light: #a766ed; $custom-dark: #000000;
JSON
{
"hex": "#7312e2",
"rgb": {
"r": 115,
"g": 18,
"b": 226
},
"hsl": {
"h": 267.981,
"s": 85.246,
"l": 47.843
},
"oklch": {
"l": 0.49228,
"c": 0.26254,
"h": 294.3
},
"luminance": 0.09568
}Semantic roles & 50–950 ramp
primary
#7312E2
secondary
#ABDC74
accent
#FB2C9B
background
#FBF6FE
surface
#F6EBFD
border
#D0C6D5
text
#110716
muted
#807A84