#6642FF#6642FF
#6642FF is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.6% C 0.260 H 282.3°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #6642FF |
|---|---|
| RGB | rgb(102, 66, 255) |
| HSL | hsl(251, 100%, 63%) |
| HSV | hsv(251, 74%, 100%) |
| CMYK | cmyk(60%, 74.1%, 0%, 0%) |
| CIE-LAB | lab(44.15, 63.11, -88.04) |
| CIE-LCH | lch(44.15, 108.32, 305.64°) |
| OKLab | oklab(54.64% 0.0552 -0.2539) |
| OKLCH | oklch(54.64% 0.26 282.3) |
| XYZ | xyz(25.4721, 13.9394, 95.9367) |
| Luminance | 0.1394 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 2.36
Bluish Purple
#703BE7
ΔE00 3.64
Purpley Blue
#5F34E7
ΔE00 4.87
Burple
#6832E3
ΔE00 5.23
Light Royal Blue
#3A2EFE
ΔE00 6.01
Purplish Blue
#601EF9
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6642FF #DBFF42
analogous
#427CFF #6642FF #C542FF
triadic
#6642FF #FF6642 #42FF66
tetradic
#6642FF #FF427C #DBFF42 #42FFC5
square
#6642FF #FF427C #DBFF42 #42FFC5
split-complementary
#6642FF #FFC542 #7CFF42
monochromatic
#2600C7 #3405FF #6642FF #987FFF #C9BCFF
Accessibility & contrast
On white
5.54
#6642FF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.79
#6642FF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6642FF
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6642FF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6642FF | 1.00 | 5.54 | 3.79 | 5.54 |
| #FFFFFF | 5.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006EFF
Deuteranopia (green-blind)
#0062FC
Tritanopia (blue-blind)
#00789E
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #6642ff; /* rgb */ color: rgb(102, 66, 255); /* oklch */ color: oklch(54.6% 0.260 282.3);
Tailwind
colors: {
custom: {
50: '#a27bff',
500: '#6642ff',
950: '#000000',
},
}SCSS
$custom: #6642ff; $custom-light: #a27bff; $custom-dark: #000000;
JSON
{
"hex": "#6642ff",
"rgb": {
"r": 102,
"g": 66,
"b": 255
},
"hsl": {
"h": 251.429,
"s": 100,
"l": 62.941
},
"oklch": {
"l": 0.54644,
"c": 0.25981,
"h": 282.3
},
"luminance": 0.13941
}Semantic roles & 50–950 ramp
primary
#6642FF
secondary
#E3F0AC
accent
#E600BA
background
#FBF7FF
surface
#F5EEFF
border
#CFC9D7
text
#110A18
muted
#807C86