#6942E6#6942E6
#6942E6 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.231 H 286.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).
Color values
| HEX | #6942E6 |
|---|---|
| RGB | rgb(105, 66, 230) |
| HSL | hsl(254, 77%, 58%) |
| HSV | hsv(254, 71%, 90%) |
| CMYK | cmyk(54.3%, 71.3%, 0%, 9.8%) |
| CIE-LAB | lab(42.17, 56.50, -77.21) |
| CIE-LCH | lch(42.17, 95.67, 306.20°) |
| OKLab | oklab(52.64% 0.065 -0.2221) |
| OKLCH | oklch(52.64% 0.231 286.3) |
| XYZ | xyz(22.0526, 12.6116, 76.1198) |
| Luminance | 0.1261 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.43
Bluish Purple
#703BE7
ΔE00 1.62
Purpley Blue
#5F34E7
ΔE00 3.17
Burple
#6832E3
ΔE00 3.24
Bluey Purple
#6241C7
ΔE00 4.31
Blurple
#5539CC
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6942E6 #BFE642
analogous
#426DE6 #6942E6 #BB42E6
triadic
#6942E6 #E66942 #42E669
tetradic
#6942E6 #E6426D #BFE642 #42E6BB
square
#6942E6 #E6426D #BFE642 #42E6BB
split-complementary
#6942E6 #E6BB42 #6DE642
monochromatic
#341499 #461BCF #6942E6 #9478ED #BFAEF4
Accessibility & contrast
On white
5.96
#6942E6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#6942E6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6942E6
5.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6942E6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6942E6 | 1.00 | 5.96 | 3.52 | 5.96 |
| #FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0068EB
Deuteranopia (green-blind)
#005FE3
Tritanopia (blue-blind)
#326E90
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #6942e6; /* rgb */ color: rgb(105, 66, 230); /* oklch */ color: oklch(52.6% 0.231 286.3);
Tailwind
colors: {
custom: {
50: '#a07aef',
500: '#6942e6',
950: '#000000',
},
}SCSS
$custom: #6942e6; $custom-light: #a07aef; $custom-dark: #000000;
JSON
{
"hex": "#6942e6",
"rgb": {
"r": 105,
"g": 66,
"b": 230
},
"hsl": {
"h": 254.268,
"s": 76.636,
"l": 58.039
},
"oklch": {
"l": 0.52636,
"c": 0.23142,
"h": 286.3
},
"luminance": 0.12613
}Semantic roles & 50–950 ramp
primary
#6942E6
secondary
#D3E3A1
accent
#F335C6
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85