#B271A4
Closest named color: Soft Purple (#A66FB5). oklch(63.4% 0.106 335), rgb(178, 113, 164).
Aa
Black text reads best on this color (5.79:1).
About this color
#B271A4 is a medium-light, moderately saturated purple. In OKLCH its lightness is 63%, its chroma 0.106 and its hue 335°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Soft Purple (#A66FB5), ΔE 0.035 away. Black text reads best on it, at 5.79:1.
| Hue family | Purples |
| Lightness | medium-light (63%) |
| Chroma | moderately saturated (0.106) |
| Temperature | in between |
| Nearest name | Soft Purple (#A66FB5) |
| Black text | 5.79:1 |
| White text | 3.62:1 |
Values
| HEX | #B271A4 |
| RGB | rgb(178, 113, 164) |
| HSL | hsl(313, 30%, 57%) |
| OKLCH | oklch(63.4% 0.106 335) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #B271A4 | 3.62:1 | AA large text | Lc -69.2 | Content text, not long reading |
| Black text on #B271A4 | 5.79:1 | AA | Lc 40.4 | Non-text elements, placeholder text |
| #B271A4 text on white | 3.62:1 | AA large text | Lc 63.7 | Content text, not long reading |
| #B271A4 text on black | 5.79:1 | AA | Lc -38.0 | Non-text elements, placeholder text |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 500.
-
Step 50
50
#F9F4F7
oklch(97.2% 0.007 340.4)
-
Step 100
100
#F1E6EE
oklch(93.6% 0.016 335.1)
-
Step 200
200
#E6D2E1
oklch(88.4% 0.03 334.4)
-
Step 300
300
#D7B5CE
oklch(81% 0.051 335.5)
-
Step 400
400
#C18DB5
oklch(70.6% 0.083 334.9)
-
Step 500
500 (this color)
#B271A4
oklch(63.4% 0.106 335)
-
Step 600
600
#9C578E
oklch(55.6% 0.116 335)
-
Step 700
700
#854779
oklch(49.1% 0.108 334.7)
-
Step 800
800
#6C3B62
oklch(42.7% 0.088 335)
-
Step 900
900
#583350
oklch(37.8% 0.069 335.2)
-
Step 950
950
#341E2F
oklch(27.1% 0.044 335.4)
#B271A4 with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #7180A6 | 0.105 |
| Deuteranopia (no green cones) | #818AA2 | 0.097 |
| Tritanopia (no blue cones) | #B87484 | 0.053 |
| Achromatopsia (no color) | #868686 | 0.107 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #B271A4
#B271A4
oklch(63.4% 0.106 335)
- #509D6E
#509D6E
oklch(63.4% 0.105 155.1)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #B271A4, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Soft Purple #A66FB5 ΔE 0.035
- Dark Lilac #9C6DA5 ΔE 0.041
- Wisteria #A87DC2 ΔE 0.049
- Heather #A484AC ΔE 0.049
- Dusty Lavender #AC86A8 ΔE 0.052
- Mauve #AE7181 ΔE 0.054
- Faded Purple #916E99 ΔE 0.060
- Deep Lilac #966EBD ΔE 0.064
Use #B271A4 in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.