#8338AF#8338AF
#8338AF is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.8% C 0.186 H 310.3°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).
Color values
| HEX | #8338AF |
|---|---|
| RGB | rgb(131, 56, 175) |
| HSL | hsl(278, 52%, 45%) |
| HSV | hsv(278, 68%, 69%) |
| CMYK | cmyk(25.1%, 68%, 0%, 31.4%) |
| CIE-LAB | lab(39.15, 52.09, -50.09) |
| CIE-LCH | lch(39.15, 72.26, 316.12°) |
| OKLab | oklab(49.83% 0.1199 -0.1415) |
| OKLCH | oklch(49.83% 0.186 310.3) |
| XYZ | xyz(18.5106, 10.7492, 41.6488) |
| Luminance | 0.1075 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 4.71
Darkorchid
#9932CC
ΔE00 5.21
Purple (survey)
#7E1E9C
ΔE00 5.38
Rebeccapurple
#663399
ΔE00 6.06
Darkviolet
#9400D3
ΔE00 6.37
Royal Purple
#7851A9
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8338AF #64AF38
analogous
#4738AF #8338AF #AF389F
triadic
#8338AF #AF8338 #38AF83
tetradic
#8338AF #AF4738 #64AF38 #389FAF
square
#8338AF #AF4738 #64AF38 #389FAF
split-complementary
#8338AF #9FAF38 #38AF47
monochromatic
#3E1A52 #602981 #8338AF #A15ACA #BB88D9
Accessibility & contrast
On white
6.67
#8338AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#8338AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8338AF
6.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8338AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8338AF | 1.00 | 6.67 | 3.15 | 6.67 |
| #FFFFFF | 6.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0059B3
Deuteranopia (green-blind)
#265DAC
Tritanopia (blue-blind)
#7D516F
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8338af; /* rgb */ color: rgb(131, 56, 175); /* oklch */ color: oklch(49.8% 0.186 310.3);
Tailwind
colors: {
custom: {
50: '#ab74c8',
500: '#8338af',
950: '#000000',
},
}SCSS
$custom: #8338af; $custom-light: #ab74c8; $custom-dark: #000000;
JSON
{
"hex": "#8338af",
"rgb": {
"r": 131,
"g": 56,
"b": 175
},
"hsl": {
"h": 277.815,
"s": 51.515,
"l": 45.294
},
"oklch": {
"l": 0.4983,
"c": 0.18551,
"h": 310.3
},
"luminance": 0.10749
}Semantic roles & 50–950 ramp
primary
#8338AF
secondary
#99C380
accent
#DB4D81
background
#FAF7FC
surface
#F5EDF8
border
#CFC8D1
text
#100913
muted
#7F7B82