#8A74F2#8A74F2
#8A74F2 is a light, vivid violet. Relative luminance 0.243; OKLCH L 64.0% C 0.182 H 288.2°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).
Color values
| HEX | #8A74F2 |
|---|---|
| RGB | rgb(138, 116, 242) |
| HSL | hsl(250, 83%, 70%) |
| HSV | hsv(250, 52%, 95%) |
| CMYK | cmyk(43%, 52.1%, 0%, 5.1%) |
| CIE-LAB | lab(56.39, 38.50, -60.74) |
| CIE-LCH | lch(56.39, 71.92, 302.37°) |
| OKLab | oklab(63.98% 0.0567 -0.1727) |
| OKLCH | oklch(63.98% 0.182 288.2) |
| XYZ | xyz(32.7491, 24.3037, 86.9527) |
| Luminance | 0.2430 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.26
Periwinkle (survey)
#8E82FE
ΔE00 4.32
Mediumpurple
#9370DB
ΔE00 4.50
Lavender Blue
#8B88F8
ΔE00 5.99
Cornflower
#6A79F7
ΔE00 6.27
Perrywinkle
#8F8CE7
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A74F2 #DCF274
analogous
#749DF2 #8A74F2 #C974F2
triadic
#8A74F2 #F28A74 #74F28A
tetradic
#8A74F2 #F2749D #DCF274 #74F2C9
square
#8A74F2 #F2749D #DCF274 #74F2C9
split-complementary
#8A74F2 #F2C974 #9DF274
monochromatic
#3614D7 #5B3CED #8A74F2 #B9ACF7 #E7E3FC
Accessibility & contrast
On white
3.58
#8A74F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.86
#8A74F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A74F2
5.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A74F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A74F2 | 1.00 | 3.58 | 5.86 | 5.86 |
| #FFFFFF | 3.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#398AF6
Deuteranopia (green-blind)
#3984EF
Tritanopia (blue-blind)
#6B8FA8
Achromatopsia (no color)
#878787
Design tokens & code
CSS
--color: #8a74f2; /* rgb */ color: rgb(138, 116, 242); /* oklch */ color: oklch(64.0% 0.182 288.2);
Tailwind
colors: {
custom: {
50: '#b29cf7',
500: '#8a74f2',
950: '#000000',
},
}SCSS
$custom: #8a74f2; $custom-light: #b29cf7; $custom-dark: #000000;
JSON
{
"hex": "#8a74f2",
"rgb": {
"r": 138,
"g": 116,
"b": 242
},
"hsl": {
"h": 250.476,
"s": 82.895,
"l": 70.196
},
"oklch": {
"l": 0.63977,
"c": 0.18176,
"h": 288.2
},
"luminance": 0.24305
}Semantic roles & 50–950 ramp
primary
#8A74F2
secondary
#ECF2CF
accent
#DF06B9
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E17
muted
#807E85