#B172DC#B172DC
#B172DC is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.1% C 0.163 H 310.1°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).
Color values
| HEX | #B172DC |
|---|---|
| RGB | rgb(177, 114, 220) |
| HSL | hsl(276, 60%, 65%) |
| HSV | hsv(276, 48%, 86%) |
| CMYK | cmyk(19.5%, 48.2%, 0%, 13.7%) |
| CIE-LAB | lab(58.56, 43.94, -44.78) |
| CIE-LCH | lch(58.56, 62.74, 314.45°) |
| OKLab | oklab(66.09% 0.1051 -0.125) |
| OKLCH | oklch(66.09% 0.163 310.1) |
| XYZ | xyz(37.0646, 26.5497, 70.8683) |
| Luminance | 0.2655 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 4.18
Light Purple
#BF77F6
ΔE00 4.34
Easter Purple
#C071FE
ΔE00 5.20
Wisteria
#A87DC2
ΔE00 6.26
Mediumpurple
#9370DB
ΔE00 6.27
Bright Lilac
#C95EFB
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B172DC #9DDC72
analogous
#7C72DC #B172DC #DC72D2
triadic
#B172DC #DCB172 #72DCB1
tetradic
#B172DC #DC7C72 #9DDC72 #72D2DC
square
#B172DC #DC7C72 #9DDC72 #72D2DC
split-complementary
#B172DC #D2DC72 #72DC7C
monochromatic
#762AAA #9641D0 #B172DC #CCA3E8 #E7D4F4
Accessibility & contrast
On white
3.33
#B172DC on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.31
#B172DC on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B172DC
6.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B172DC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B172DC | 1.00 | 3.33 | 6.31 | 6.31 |
| #FFFFFF | 3.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#588AE0
Deuteranopia (green-blind)
#6A8ED9
Tritanopia (blue-blind)
#AC839D
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #b172dc; /* rgb */ color: rgb(177, 114, 220); /* oklch */ color: oklch(66.1% 0.163 310.1);
Tailwind
colors: {
custom: {
50: '#ca9ce7',
500: '#b172dc',
950: '#000000',
},
}SCSS
$custom: #b172dc; $custom-light: #ca9ce7; $custom-dark: #000000;
JSON
{
"hex": "#b172dc",
"rgb": {
"r": 177,
"g": 114,
"b": 220
},
"hsl": {
"h": 275.66,
"s": 60.227,
"l": 65.49
},
"oklch": {
"l": 0.66087,
"c": 0.16329,
"h": 310.1
},
"luminance": 0.26549
}Semantic roles & 50–950 ramp
primary
#B172DC
secondary
#D2E7C3
accent
#C81E63
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84