#7962CB#7962CB
#7962CB is a mid, vivid violet. Relative luminance 0.171; OKLCH L 56.9% C 0.157 H 290.6°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #7962CB |
|---|---|
| RGB | rgb(121, 98, 203) |
| HSL | hsl(253, 50%, 59%) |
| HSV | hsv(253, 52%, 80%) |
| CMYK | cmyk(40.4%, 51.7%, 0%, 20.4%) |
| CIE-LAB | lab(48.40, 34.12, -51.63) |
| CIE-LCH | lch(48.40, 61.89, 303.46°) |
| OKLab | oklab(56.91% 0.0552 -0.1464) |
| OKLCH | oklch(56.91% 0.157 290.6) |
| XYZ | xyz(23.0294, 17.1114, 58.5778) |
| Luminance | 0.1711 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.37
Slate Blue
#6A5ACD
ΔE00 3.71
Dark Periwinkle
#665FD1
ΔE00 3.96
Iris
#6258C4
ΔE00 5.21
Purpley
#8756E4
ΔE00 5.29
Mediumslateblue
#7B68EE
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7962CB #B4CB62
analogous
#6280CB #7962CB #AE62CB
triadic
#7962CB #CB7962 #62CB79
tetradic
#7962CB #CB6280 #B4CB62 #62CBAE
square
#7962CB #CB6280 #B4CB62 #62CBAE
split-complementary
#7962CB #CBAE62 #80CB62
monochromatic
#402C86 #563CB4 #7962CB #A090DA #C7BEE9
Accessibility & contrast
On white
4.75
#7962CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.42
#7962CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7962CB
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7962CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7962CB | 1.00 | 4.75 | 4.42 | 4.75 |
| #FFFFFF | 4.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3575CF
Deuteranopia (green-blind)
#3871C9
Tritanopia (blue-blind)
#63788D
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #7962cb; /* rgb */ color: rgb(121, 98, 203); /* oklch */ color: oklch(56.9% 0.157 290.6);
Tailwind
colors: {
custom: {
50: '#a48fdb',
500: '#7962cb',
950: '#000000',
},
}SCSS
$custom: #7962cb; $custom-light: #a48fdb; $custom-dark: #000000;
JSON
{
"hex": "#7962cb",
"rgb": {
"r": 121,
"g": 98,
"b": 203
},
"hsl": {
"h": 253.143,
"s": 50.239,
"l": 59.02
},
"oklch": {
"l": 0.56913,
"c": 0.1565,
"h": 290.6
},
"luminance": 0.17112
}Semantic roles & 50–950 ramp
primary
#7962CB
secondary
#D0D9B0
accent
#DA4EBB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83