#796CFC#796CFC
#796CFC is a mid, highly saturated blue. Relative luminance 0.218; OKLCH L 61.9% C 0.207 H 282.6°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).
Color values
| HEX | #796CFC |
|---|---|
| RGB | rgb(121, 108, 252) |
| HSL | hsl(245, 96%, 71%) |
| HSV | hsv(245, 57%, 99%) |
| CMYK | cmyk(52%, 57.1%, 0%, 1.2%) |
| CIE-LAB | lab(53.83, 42.48, -70.49) |
| CIE-LCH | lch(53.83, 82.30, 301.08°) |
| OKLab | oklab(61.94% 0.0451 -0.2018) |
| OKLCH | oklch(61.94% 0.207 282.6) |
| XYZ | xyz(30.8130, 21.8166, 94.6640) |
| Luminance | 0.2182 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 2.33
Cornflower
#6A79F7
ΔE00 5.14
Periwinkle (survey)
#8E82FE
ΔE00 6.79
Mediumpurple
#9370DB
ΔE00 7.19
Purpley
#8756E4
ΔE00 7.72
Dark Periwinkle
#665FD1
ΔE00 8.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796CFC #EFFC6C
analogous
#6CA7FC #796CFC #C16CFC
triadic
#796CFC #FC796C #6CFC79
tetradic
#796CFC #FC6CA7 #EFFC6C #6CFCC1
square
#796CFC #FC6CA7 #EFFC6C #6CFCC1
split-complementary
#796CFC #FCC16C #A7FC6C
monochromatic
#1905E9 #4230FB #796CFC #B0A8FD #E4E1FE
Accessibility & contrast
On white
3.92
#796CFC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.36
#796CFC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796CFC
5.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796CFC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796CFC | 1.00 | 3.92 | 5.36 | 5.36 |
| #FFFFFF | 3.92 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#007CF9
Tritanopia (blue-blind)
#428DAA
Achromatopsia (no color)
#818181
Design tokens & code
CSS
--color: #796cfc; /* rgb */ color: rgb(121, 108, 252); /* oklch */ color: oklch(61.9% 0.207 282.6);
Tailwind
colors: {
custom: {
50: '#a996fe',
500: '#796cfc',
950: '#000000',
},
}SCSS
$custom: #796cfc; $custom-light: #a996fe; $custom-dark: #000000;
JSON
{
"hex": "#796cfc",
"rgb": {
"r": 121,
"g": 108,
"b": 252
},
"hsl": {
"h": 245.417,
"s": 96,
"l": 70.588
},
"oklch": {
"l": 0.61942,
"c": 0.20684,
"h": 282.6
},
"luminance": 0.21818
}Semantic roles & 50–950 ramp
primary
#796CFC
secondary
#F2F5CE
accent
#E600D1
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110D18
muted
#807E86