#785FC2#785FC2
#785FC2 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.7% C 0.149 H 292.5°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).
Color values
| HEX | #785FC2 |
|---|---|
| RGB | rgb(120, 95, 194) |
| HSL | hsl(255, 45%, 57%) |
| HSV | hsv(255, 51%, 76%) |
| CMYK | cmyk(38.1%, 51%, 0%, 23.9%) |
| CIE-LAB | lab(47.07, 33.15, -48.58) |
| CIE-LCH | lch(47.07, 58.81, 304.31°) |
| OKLab | oklab(55.73% 0.0571 -0.1375) |
| OKLCH | oklch(55.73% 0.149 292.5) |
| XYZ | xyz(21.5730, 16.0720, 52.9941) |
| Luminance | 0.1607 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 3.51
Slate Blue
#6A5ACD
ΔE00 3.75
Dark Periwinkle
#665FD1
ΔE00 4.58
Iris
#6258C4
ΔE00 4.78
Deep Lavender
#8D5EB7
ΔE00 5.66
Purpley
#8756E4
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#785FC2 #A9C25F
analogous
#5F78C2 #785FC2 #AA5FC2
triadic
#785FC2 #C2785F #5FC278
tetradic
#785FC2 #C25F78 #A9C25F #5FC2AA
square
#785FC2 #C25F78 #A9C25F #5FC2AA
split-complementary
#785FC2 #C2AA5F #78C25F
monochromatic
#412E79 #593FA5 #785FC2 #9D8BD3 #C3B8E4
Accessibility & contrast
On white
4.98
#785FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#785FC2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #785FC2
4.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##785FC2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##785FC2 | 1.00 | 4.98 | 4.21 | 4.98 |
| #FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3771C5
Deuteranopia (green-blind)
#3C6EC0
Tritanopia (blue-blind)
#657387
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #785fc2; /* rgb */ color: rgb(120, 95, 194); /* oklch */ color: oklch(55.7% 0.149 292.5);
Tailwind
colors: {
custom: {
50: '#a38dd5',
500: '#785fc2',
950: '#000000',
},
}SCSS
$custom: #785fc2; $custom-light: #a38dd5; $custom-dark: #000000;
JSON
{
"hex": "#785fc2",
"rgb": {
"r": 120,
"g": 95,
"b": 194
},
"hsl": {
"h": 255.152,
"s": 44.796,
"l": 56.667
},
"oklch": {
"l": 0.55726,
"c": 0.14892,
"h": 292.5
},
"luminance": 0.16073
}Semantic roles & 50–950 ramp
primary
#785FC2
secondary
#C8D3AA
accent
#D453B4
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83