#B271AA
Closest named color: Soft Purple (#A66FB5). oklch(63.7% 0.112 331.3), rgb(178, 113, 170).
Aa
Black text reads best on this color (5.83:1).
About this color
#B271AA is a medium-light, moderately saturated purple. In OKLCH its lightness is 64%, its chroma 0.112 and its hue 331°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Soft Purple (#A66FB5), ΔE 0.029 away. Black text reads best on it, at 5.83:1.
| Hue family | Purples |
| Lightness | medium-light (64%) |
| Chroma | moderately saturated (0.112) |
| Temperature | in between |
| Nearest name | Soft Purple (#A66FB5) |
| Black text | 5.83:1 |
| White text | 3.59:1 |
Values
| HEX | #B271AA |
| RGB | rgb(178, 113, 170) |
| HSL | hsl(307, 30%, 57%) |
| OKLCH | oklch(63.7% 0.112 331.3) |
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 #B271AA | 3.59:1 | AA large text | Lc -68.9 | Content text, not long reading |
| Black text on #B271AA | 5.83:1 | AA | Lc 40.7 | Non-text elements, placeholder text |
| #B271AA text on white | 3.59:1 | AA large text | Lc 63.4 | Content text, not long reading |
| #B271AA text on black | 5.83:1 | AA | Lc -38.3 | 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
#F8F4F8
oklch(97.1% 0.007 325.6)
-
Step 100
100
#F0E6EF
oklch(93.5% 0.016 328.8)
-
Step 200
200
#E6D2E2
oklch(88.5% 0.031 332.5)
-
Step 300
300
#D6B4D1
oklch(80.8% 0.055 331)
-
Step 400
400
#C18DBA
oklch(70.8% 0.087 331.2)
-
Step 500
500 (this color)
#B271AA
oklch(63.7% 0.112 331.3)
-
Step 600
600
#9B5693
oklch(55.5% 0.122 331.4)
-
Step 700
700
#84467E
oklch(49% 0.113 330.8)
-
Step 800
800
#6C3A66
oklch(42.7% 0.094 331.6)
-
Step 900
900
#583253
oklch(37.7% 0.074 331.8)
-
Step 950
950
#331E31
oklch(27% 0.045 330.1)
#B271AA 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) | #6F81AC | 0.108 |
| Deuteranopia (no green cones) | #7F8AA8 | 0.099 |
| Tritanopia (no blue cones) | #B77586 | 0.060 |
| Achromatopsia (no color) | #878787 | 0.112 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #B271AA
#B271AA
oklch(63.7% 0.112 331.3)
- #529E68
#529E68
oklch(63.6% 0.111 151.5)
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 #B271AA, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Soft Purple #A66FB5 ΔE 0.029
- Dark Lilac #9C6DA5 ΔE 0.041
- Wisteria #A87DC2 ΔE 0.042
- Heather #A484AC ΔE 0.051
- Dusty Lavender #AC86A8 ΔE 0.055
- Deep Lilac #966EBD ΔE 0.058
- Faded Purple #916E99 ΔE 0.063
- Mauve #AE7181 ΔE 0.063
Use #B271AA 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.