#8338BA#8338BA
#8338BA is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.6% C 0.197 H 307.1°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).
Color values
| HEX | #8338BA |
|---|---|
| RGB | rgb(131, 56, 186) |
| HSL | hsl(275, 54%, 47%) |
| HSV | hsv(275, 70%, 73%) |
| CMYK | cmyk(29.6%, 69.9%, 0%, 27.1%) |
| CIE-LAB | lab(39.91, 54.57, -55.36) |
| CIE-LCH | lch(39.91, 77.73, 314.59°) |
| OKLab | oklab(50.61% 0.1187 -0.157) |
| OKLCH | oklch(50.61% 0.197 307.1) |
| XYZ | xyz(19.6353, 11.1990, 47.5721) |
| Luminance | 0.1120 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.24
Purply
#983FB2
ΔE00 5.25
Darkviolet
#9400D3
ΔE00 5.37
Blueviolet
#8A2BE2
ΔE00 5.49
Purple (survey)
#7E1E9C
ΔE00 6.55
Bluey Purple
#6241C7
ΔE00 6.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8338BA #6FBA38
analogous
#4238BA #8338BA #BA38B0
triadic
#8338BA #BA8338 #38BA83
tetradic
#8338BA #BA4238 #6FBA38 #38B0BA
square
#8338BA #BA4238 #6FBA38 #38B0BA
split-complementary
#8338BA #B0BA38 #38BA42
monochromatic
#411C5C #622A8B #8338BA #A060CF #BC8FDD
Accessibility & contrast
On white
6.48
#8338BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.24
#8338BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8338BA
6.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8338BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8338BA | 1.00 | 6.48 | 3.24 | 6.48 |
| #FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#115FB7
Tritanopia (blue-blind)
#7A5575
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #8338ba; /* rgb */ color: rgb(131, 56, 186); /* oklch */ color: oklch(50.6% 0.197 307.1);
Tailwind
colors: {
custom: {
50: '#ac75d0',
500: '#8338ba',
950: '#000000',
},
}SCSS
$custom: #8338ba; $custom-light: #ac75d0; $custom-dark: #000000;
JSON
{
"hex": "#8338ba",
"rgb": {
"r": 131,
"g": 56,
"b": 186
},
"hsl": {
"h": 274.615,
"s": 53.719,
"l": 47.451
},
"oklch": {
"l": 0.50614,
"c": 0.19682,
"h": 307.1
},
"luminance": 0.11199
}Semantic roles & 50–950 ramp
primary
#8338BA
secondary
#A2C886
accent
#DD4B89
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82