#BA79F2#BA79F2
#BA79F2 is a light, vivid violet. Relative luminance 0.305; OKLCH L 69.3% C 0.180 H 307.1°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).
Color values
| HEX | #BA79F2 |
|---|---|
| RGB | rgb(186, 121, 242) |
| HSL | hsl(272, 82%, 71%) |
| HSV | hsv(272, 50%, 95%) |
| CMYK | cmyk(23.1%, 50%, 0%, 5.1%) |
| CIE-LAB | lab(62.10, 47.51, -51.36) |
| CIE-LCH | lch(62.10, 69.96, 312.77°) |
| OKLab | oklab(69.3% 0.1089 -0.1439) |
| OKLCH | oklch(69.3% 0.18 307.1) |
| XYZ | xyz(43.1108, 30.5251, 87.6080) |
| Luminance | 0.3053 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.04
Easter Purple
#C071FE
ΔE00 2.51
Light Urple
#B36FF6
ΔE00 2.95
Liliac
#C48EFD
ΔE00 5.35
Bright Lavender
#C760FF
ΔE00 5.46
Bright Lilac
#C95EFB
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA79F2 #B1F279
analogous
#7D79F2 #BA79F2 #F279EE
triadic
#BA79F2 #F2BA79 #79F2BA
tetradic
#BA79F2 #F27D79 #B1F279 #79EEF2
square
#BA79F2 #F27D79 #B1F279 #79EEF2
split-complementary
#BA79F2 #EEF279 #79F27D
monochromatic
#8015DB #9D41ED #BA79F2 #D7B1F7 #F1E3FC
Accessibility & contrast
On white
2.96
#BA79F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.11
#BA79F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA79F2
7.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA79F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA79F2 | 1.00 | 2.96 | 7.11 | 7.11 |
| #FFFFFF | 2.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5694F6
Deuteranopia (green-blind)
#6997EF
Tritanopia (blue-blind)
#B28EAA
Achromatopsia (no color)
#969696
Design tokens & code
CSS
--color: #ba79f2; /* rgb */ color: rgb(186, 121, 242); /* oklch */ color: oklch(69.3% 0.180 307.1);
Tailwind
colors: {
custom: {
50: '#d1a1f7',
500: '#ba79f2',
950: '#000000',
},
}SCSS
$custom: #ba79f2; $custom-light: #d1a1f7; $custom-dark: #000000;
JSON
{
"hex": "#ba79f2",
"rgb": {
"r": 186,
"g": 121,
"b": 242
},
"hsl": {
"h": 272.231,
"s": 82.313,
"l": 71.176
},
"oklch": {
"l": 0.69304,
"c": 0.18048,
"h": 307.1
},
"luminance": 0.30525
}Semantic roles & 50–950 ramp
primary
#BA79F2
secondary
#E2F3D3
accent
#DF076B
background
#FDFAFF
surface
#FAF3FF
border
#D3CDD7
text
#140F17
muted
#837F85