#7962CA#7962CA
#7962CA is a mid, vivid violet. Relative luminance 0.171; OKLCH L 56.8% C 0.155 H 290.8°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #7962CA |
|---|---|
| RGB | rgb(121, 98, 202) |
| HSL | hsl(253, 50%, 59%) |
| HSV | hsv(253, 51%, 79%) |
| CMYK | cmyk(40.1%, 51.5%, 0%, 20.8%) |
| CIE-LAB | lab(48.34, 33.84, -51.15) |
| CIE-LCH | lch(48.34, 61.33, 303.49°) |
| OKLab | oklab(56.85% 0.0551 -0.1451) |
| OKLCH | oklch(56.85% 0.155 290.8) |
| XYZ | xyz(22.9106, 17.0639, 57.9522) |
| Luminance | 0.1706 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.42
Slate Blue
#6A5ACD
ΔE00 3.75
Dark Periwinkle
#665FD1
ΔE00 4.03
Iris
#6258C4
ΔE00 5.21
Purpley
#8756E4
ΔE00 5.40
Mediumslateblue
#7B68EE
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7962CA #B3CA62
analogous
#627FCA #7962CA #AD62CA
triadic
#7962CA #CA7962 #62CA79
tetradic
#7962CA #CA627F #B3CA62 #62CAAD
square
#7962CA #CA627F #B3CA62 #62CAAD
split-complementary
#7962CA #CAAD62 #7FCA62
monochromatic
#402D85 #563CB3 #7962CA #A090D9 #C7BEE9
Accessibility & contrast
On white
4.76
#7962CA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.41
#7962CA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7962CA
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7962CA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7962CA | 1.00 | 4.76 | 4.41 | 4.76 |
| #FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3675CE
Deuteranopia (green-blind)
#3971C8
Tritanopia (blue-blind)
#63778D
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #7962ca; /* rgb */ color: rgb(121, 98, 202); /* oklch */ color: oklch(56.8% 0.155 290.8);
Tailwind
colors: {
custom: {
50: '#a48fdb',
500: '#7962ca',
950: '#000000',
},
}SCSS
$custom: #7962ca; $custom-light: #a48fdb; $custom-dark: #000000;
JSON
{
"hex": "#7962ca",
"rgb": {
"r": 121,
"g": 98,
"b": 202
},
"hsl": {
"h": 253.269,
"s": 49.524,
"l": 58.824
},
"oklch": {
"l": 0.56849,
"c": 0.15517,
"h": 290.8
},
"luminance": 0.17065
}Semantic roles & 50–950 ramp
primary
#7962CA
secondary
#CFD8AF
accent
#D94FBA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83