#7838BF#7838BF
#7838BF is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.7% C 0.200 H 301.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).
Color values
| HEX | #7838BF |
|---|---|
| RGB | rgb(120, 56, 191) |
| HSL | hsl(268, 55%, 48%) |
| HSV | hsv(268, 71%, 75%) |
| CMYK | cmyk(37.2%, 70.7%, 0%, 25.1%) |
| CIE-LAB | lab(38.87, 53.58, -60.05) |
| CIE-LCH | lch(38.87, 80.48, 311.74°) |
| OKLab | oklab(49.68% 0.1028 -0.1712) |
| OKLCH | oklch(49.68% 0.2 301) |
| XYZ | xyz(18.5616, 10.5829, 50.3449) |
| Luminance | 0.1058 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 4.55
Blueviolet
#8A2BE2
ΔE00 5.19
Burple
#6832E3
ΔE00 5.54
Bluish Purple
#703BE7
ΔE00 5.79
Darkorchid
#9932CC
ΔE00 5.83
Darkviolet
#9400D3
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7838BF #7FBF38
analogous
#383CBF #7838BF #BB38BF
triadic
#7838BF #BF7838 #38BF78
tetradic
#7838BF #BF383C #7FBF38 #38BFBB
square
#7838BF #BF383C #7FBF38 #38BFBB
split-complementary
#7838BF #BFBB38 #3CBF38
monochromatic
#3D1C60 #5A2A90 #7838BF #9763D1 #B792DF
Accessibility & contrast
On white
6.74
#7838BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#7838BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7838BF
6.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7838BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7838BF | 1.00 | 6.74 | 3.12 | 6.74 |
| #FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#005BBC
Tritanopia (blue-blind)
#685978
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #7838bf; /* rgb */ color: rgb(120, 56, 191); /* oklch */ color: oklch(49.7% 0.200 301.0);
Tailwind
colors: {
custom: {
50: '#a574d3',
500: '#7838bf',
950: '#000000',
},
}SCSS
$custom: #7838bf; $custom-light: #a574d3; $custom-dark: #000000;
JSON
{
"hex": "#7838bf",
"rgb": {
"r": 120,
"g": 56,
"b": 191
},
"hsl": {
"h": 268.444,
"s": 54.656,
"l": 48.431
},
"oklch": {
"l": 0.49679,
"c": 0.19968,
"h": 301
},
"luminance": 0.10583
}Semantic roles & 50–950 ramp
primary
#7838BF
secondary
#ABCA89
accent
#DE4A98
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83