#796BEE#796BEE
#796BEE is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.8% C 0.190 H 284.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #796BEE |
|---|---|
| RGB | rgb(121, 107, 238) |
| HSL | hsl(246, 79%, 68%) |
| HSV | hsv(246, 55%, 93%) |
| CMYK | cmyk(49.2%, 55%, 0%, 6.7%) |
| CIE-LAB | lab(52.68, 38.92, -64.56) |
| CIE-LCH | lch(52.68, 75.39, 301.08°) |
| OKLab | oklab(60.79% 0.0461 -0.1844) |
| OKLCH | oklch(60.79% 0.19 284) |
| XYZ | xyz(28.5709, 20.7519, 83.3724) |
| Luminance | 0.2075 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 1.00
Cornflower
#6A79F7
ΔE00 5.66
Mediumpurple
#9370DB
ΔE00 6.23
Dark Periwinkle
#665FD1
ΔE00 6.48
Purpley
#8756E4
ΔE00 6.76
Light Indigo
#6D5ACF
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796BEE #E0EE6B
analogous
#6B9FEE #796BEE #BA6BEE
triadic
#796BEE #EE796B #6BEE79
tetradic
#796BEE #EE6B9F #E0EE6B #6BEEBA
square
#796BEE #EE6B9F #E0EE6B #6BEEBA
split-complementary
#796BEE #EEBA6B #9FEE6B
monochromatic
#2A17C8 #4734E8 #796BEE #ABA2F4 #DCD9FB
Accessibility & contrast
On white
4.08
#796BEE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.15
#796BEE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796BEE
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796BEE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796BEE | 1.00 | 4.08 | 5.15 | 5.15 |
| #FFFFFF | 4.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1782F2
Deuteranopia (green-blind)
#067AEB
Tritanopia (blue-blind)
#4E88A2
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #796bee; /* rgb */ color: rgb(121, 107, 238); /* oklch */ color: oklch(60.8% 0.190 284.0);
Tailwind
colors: {
custom: {
50: '#a796f4',
500: '#796bee',
950: '#000000',
},
}SCSS
$custom: #796bee; $custom-light: #a796f4; $custom-dark: #000000;
JSON
{
"hex": "#796bee",
"rgb": {
"r": 121,
"g": 107,
"b": 238
},
"hsl": {
"h": 246.412,
"s": 79.394,
"l": 67.647
},
"oklch": {
"l": 0.60793,
"c": 0.19011,
"h": 284
},
"luminance": 0.20753
}Semantic roles & 50–950 ramp
primary
#796BEE
secondary
#EAEFC6
accent
#DC0AC5
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100D17
muted
#7F7E85