#796CD1#796CD1
#796CD1 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 59.1% C 0.150 H 286.8°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #796CD1 |
|---|---|
| RGB | rgb(121, 108, 209) |
| HSL | hsl(248, 52%, 62%) |
| HSV | hsv(248, 48%, 82%) |
| CMYK | cmyk(42.1%, 48.3%, 0%, 18%) |
| CIE-LAB | lab(51.14, 29.89, -50.67) |
| CIE-LCH | lch(51.14, 58.83, 300.54°) |
| OKLab | oklab(59.08% 0.0432 -0.1436) |
| OKLCH | oklch(59.08% 0.15 286.8) |
| XYZ | xyz(24.7531, 19.3926, 62.7482) |
| Luminance | 0.1939 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Mediumslateblue
#7B68EE
ΔE00 4.39
Dark Periwinkle
#665FD1
ΔE00 5.26
Mediumpurple
#9370DB
ΔE00 5.45
Light Indigo
#6D5ACF
ΔE00 5.97
Slate Blue
#6A5ACD
ΔE00 6.18
Purpley
#8756E4
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#796CD1 #C4D16C
analogous
#6C91D1 #796CD1 #AC6CD1
triadic
#796CD1 #D1796C #6CD179
tetradic
#796CD1 #D16C91 #C4D16C #6CD1AC
square
#796CD1 #D16C91 #C4D16C #6CD1AC
split-complementary
#796CD1 #D1AC6C #91D16C
monochromatic
#3B2E94 #4F3DC2 #796CD1 #A39BE0 #CEC9EE
Accessibility & contrast
On white
4.30
#796CD1 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#796CD1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #796CD1
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##796CD1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##796CD1 | 1.00 | 4.30 | 4.88 | 4.88 |
| #FFFFFF | 4.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#437CD5
Deuteranopia (green-blind)
#4277CF
Tritanopia (blue-blind)
#5F8195
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #796cd1; /* rgb */ color: rgb(121, 108, 209); /* oklch */ color: oklch(59.1% 0.150 286.8);
Tailwind
colors: {
custom: {
50: '#a496e0',
500: '#796cd1',
950: '#000000',
},
}SCSS
$custom: #796cd1; $custom-light: #a496e0; $custom-dark: #000000;
JSON
{
"hex": "#796cd1",
"rgb": {
"r": 121,
"g": 108,
"b": 209
},
"hsl": {
"h": 247.723,
"s": 52.332,
"l": 62.157
},
"oklch": {
"l": 0.5908,
"c": 0.14998,
"h": 286.8
},
"luminance": 0.19394
}Semantic roles & 50–950 ramp
primary
#796CD1
secondary
#DADFBA
accent
#C026AC
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#100D15
muted
#7F7E83