#7156F2#7156F2
#7156F2 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.1% C 0.222 H 284.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #7156F2 |
|---|---|
| RGB | rgb(113, 86, 242) |
| HSL | hsl(250, 86%, 64%) |
| HSV | hsv(250, 64%, 95%) |
| CMYK | cmyk(53.3%, 64.5%, 0%, 5.1%) |
| CIE-LAB | lab(47.72, 50.58, -74.87) |
| CIE-LCH | lch(47.72, 90.36, 304.04°) |
| OKLab | oklab(57.09% 0.0569 -0.215) |
| OKLCH | oklch(57.09% 0.222 284.8) |
| XYZ | xyz(26.1600, 16.5756, 85.8082) |
| Luminance | 0.1658 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 4.12
Light Indigo
#6D5ACF
ΔE00 4.83
Slate Blue
#6A5ACD
ΔE00 5.21
Mediumslateblue
#7B68EE
ΔE00 5.23
Dark Periwinkle
#665FD1
ΔE00 5.36
Purpleish Blue
#6140EF
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7156F2 #D7F256
analogous
#5689F2 #7156F2 #BF56F2
triadic
#7156F2 #F27156 #56F271
tetradic
#7156F2 #F25689 #D7F256 #56F2BF
square
#7156F2 #F25689 #D7F256 #56F2BF
split-complementary
#7156F2 #F2BF56 #89F256
monochromatic
#2D0FBF #411DEE #7156F2 #A18FF6 #D1C8FB
Accessibility & contrast
On white
4.87
#7156F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.32
#7156F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7156F2
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7156F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7156F2 | 1.00 | 4.87 | 4.32 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#006CEF
Tritanopia (blue-blind)
#397D9D
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7156f2; /* rgb */ color: rgb(113, 86, 242); /* oklch */ color: oklch(57.1% 0.222 284.8);
Tailwind
colors: {
custom: {
50: '#a587f7',
500: '#7156f2',
950: '#000000',
},
}SCSS
$custom: #7156f2; $custom-light: #a587f7; $custom-dark: #000000;
JSON
{
"hex": "#7156f2",
"rgb": {
"r": 113,
"g": 86,
"b": 242
},
"hsl": {
"h": 250.385,
"s": 85.714,
"l": 64.314
},
"oklch": {
"l": 0.57087,
"c": 0.22244,
"h": 284.8
},
"luminance": 0.16577
}Semantic roles & 50–950 ramp
primary
#7156F2
secondary
#E4EDB7
accent
#E203BC
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85