#B040FF#B040FF
#B040FF is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 62.0% C 0.266 H 306.7°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #B040FF |
|---|---|
| RGB | rgb(176, 64, 255) |
| HSL | hsl(275, 100%, 63%) |
| HSV | hsv(275, 75%, 100%) |
| CMYK | cmyk(31%, 74.9%, 0%, 0%) |
| CIE-LAB | lab(51.97, 74.67, -74.91) |
| CIE-LCH | lch(51.97, 105.77, 314.91°) |
| OKLab | oklab(61.96% 0.1587 -0.213) |
| OKLCH | oklch(61.96% 0.266 306.7) |
| XYZ | xyz(37.7840, 20.1173, 96.4809) |
| Luminance | 0.2012 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Neon Purple
#BC13FE
ΔE00 3.74
Lightish Purple
#A552E6
ΔE00 3.79
Electric Purple
#AA23FF
ΔE00 4.10
Bright Purple
#BE03FD
ΔE00 4.23
Lighter Purple
#A55AF4
ΔE00 4.25
Hot Purple
#CB00F5
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B040FF #8FFF40
analogous
#5040FF #B040FF #FF40EF
triadic
#B040FF #FFB040 #40FFB0
tetradic
#B040FF #FF5040 #8FFF40 #40EFFF
square
#B040FF #FF5040 #8FFF40 #40EFFF
split-complementary
#B040FF #EFFF40 #40FF50
monochromatic
#7300C5 #9703FF #B040FF #C97DFF #E3BAFF
Accessibility & contrast
On white
4.18
#B040FF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.02
#B040FF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B040FF
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B040FF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B040FF | 1.00 | 4.18 | 5.02 | 5.02 |
| #FFFFFF | 4.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0078FF
Deuteranopia (green-blind)
#007DFB
Tritanopia (blue-blind)
#A2709E
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #b040ff; /* rgb */ color: rgb(176, 64, 255); /* oklch */ color: oklch(62.0% 0.266 306.7);
Tailwind
colors: {
custom: {
50: '#ce80ff',
500: '#b040ff',
950: '#000000',
},
}SCSS
$custom: #b040ff; $custom-light: #ce80ff; $custom-dark: #000000;
JSON
{
"hex": "#b040ff",
"rgb": {
"r": 176,
"g": 64,
"b": 255
},
"hsl": {
"h": 275.183,
"s": 100,
"l": 62.549
},
"oklch": {
"l": 0.61963,
"c": 0.26562,
"h": 306.7
},
"luminance": 0.20117
}Semantic roles & 50–950 ramp
primary
#B040FF
secondary
#C7F0AB
accent
#E6005F
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#140B18
muted
#837C86