More
More
#BC23AC colour
#BC23AC is a magenta close to CSS mediumvioletred: RGB 188, 35, 172, HSL 306, 69%, 44%. White text passes AA (5.28:1). Tints, shades and colour harmonies.
- Nearest CSS name
mediumvioletred#c71585 (not an exact match)- Described as
- a magenta
- Red, green, blue
- 188, 35, 172
- Web safe
- No
- Luminance
- 0.1487 (WCAG relative luminance, 0 is black, 1 is white)
Colour codes
| HEX | #bc23ac | |
|---|---|---|
| RGB | rgb(188, 35, 172) | |
| RGB (percent) | rgb(73.7% 13.7% 67.5%) | |
| HSL | hsl(306.3, 68.6%, 43.7%) | |
| HSV / HSB | hsv(306.3, 81.4%, 73.7%) | |
| HWB | hwb(306.3 13.7% 26.3%) | |
| CMYK (naive) | cmyk(0%, 81%, 9%, 26%) | |
| CIELAB (D50) | lab(45.49% 67.93 -37.24) | |
| OKLCH | oklch(56.05% 0.2296 333.15) | |
| Decimal | 12329900 |
CMYK here is the plain formula with no colour profile, so treat it as a starting point; a printer's profile gives the real ink values. CIELAB uses a D50 white point, as CSS lab() does. HSV is not a CSS function, so it is shown for design apps only.
Contrast with white and black text
| Text | Ratio | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White | 5.28:1 | Pass | Pass | Fail | Pass |
| Black | 3.97:1 | Fail | Pass | Fail | Fail |
White text is the better choice on #BC23AC (5.28:1). Ratios use the WCAG 2.2 formula; large text means at least 24px, or 18.66px bold. Check another pair.
Tints and shades
Mixed with white, then with black, in ten even steps (straight sRGB mixing, as most design tools do).
Colour harmonies
Hue turned around the HSL colour wheel, saturation and lightness kept.
How it looks with colour blindness
Simulated with the Machado, Oliveira and Fernandes (2009) matrices at full severity, applied in linear RGB; achromatopsia shows the colour's luminance as grey. Milder forms (protanomaly, deuteranomaly) are far more common and shift colours less. Never use colour as the only way to carry meaning.
CSS
| Text colour | color: #bc23ac; | |
|---|---|---|
| Background | background-color: #bc23ac; | |
| Border | border: 1px solid #bc23ac; | |
| Half transparent | background-color: rgb(188 35 172 / 50%); | |
| Custom property | --colour-main: #bc23ac; | |
| Gradient to a darker shade | background: linear-gradient(135deg, #bc23ac, #711567); | |
| Gradient from a lighter tint | background: linear-gradient(180deg, #d77bcd, #bc23ac); | |
| Text on this colour | background-color: #bc23ac; color: #fff; |
Similar named colours
mediumvioletred#c71585, distance 6.6mediumorchid#ba55d3, distance 8.8darkorchid#9932cc, distance 8.8darkviolet#9400d3, distance 11.3darkmagenta#8b008b, distance 11.8blueviolet#8a2be2, distance 13.6#23bc33Complement of #BC23AC
Distance is measured in OKLab, scaled by 100; under about 2 is hard to tell apart side by side.
Convert #BC23AC to other formats · Build a palette from it · Check contrast · All named colours
Colour names from CSS Color Module Level 4. Palette values from the Tailwind CSS v3 default palette (MIT licence) and the Material Design 2014 colour palette as published in Material Design Lite (Apache License 2.0). All other values are calculated from the hex code.