#BA51D8
Closest named color: Medium Orchid (#BA55D3). oklch(62.4% 0.213 318), rgb(186, 81, 216).
Aa
Black text reads best on this color (5.25:1).
About this color
#BA51D8 is a medium-light, vivid purple. In OKLCH its lightness is 62%, its chroma 0.213 and its hue 318°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Medium Orchid (#BA55D3), ΔE 0.011 away. Black text reads best on it, at 5.25:1.
| Hue family | Purples |
| Lightness | medium-light (62%) |
| Chroma | vivid (0.213) |
| Temperature | in between |
| Nearest name | Medium Orchid (#BA55D3) |
| Black text | 5.25:1 |
| White text | 3.99:1 |
Values
| HEX | #BA51D8 |
| RGB | rgb(186, 81, 216) |
| HSL | hsl(287, 63%, 58%) |
| OKLCH | oklch(62.4% 0.213 318) |
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 #BA51D8 | 3.99:1 | AA large text | Lc -72.1 | Content text, not long reading |
| Black text on #BA51D8 | 5.25:1 | AA | Lc 37.5 | Non-text elements, placeholder text |
| #BA51D8 text on white | 3.99:1 | AA large text | Lc 66.6 | Content text, not long reading |
| #BA51D8 text on black | 5.25:1 | AA | Lc -35.1 | 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
#F9F3FC
oklch(97.1% 0.013 314.8)
-
Step 100
100
#F3E4F7
oklch(93.6% 0.03 319.1)
-
Step 200
200
#EACEF2
oklch(88.6% 0.057 318.7)
-
Step 300
300
#DDABEC
oklch(80.8% 0.104 318.3)
-
Step 400
400
#CB7BE3
oklch(70.7% 0.167 318.1)
-
Step 500
500 (this color)
#BA51D8
oklch(62.4% 0.213 318)
-
Step 600
600
#A82FC8
oklch(55.6% 0.232 318)
-
Step 700
700
#901FAD
oklch(49.2% 0.215 318)
-
Step 800
800
#751E8C
oklch(42.8% 0.178 318.1)
-
Step 900
900
#5F2170
oklch(37.8% 0.139 318.2)
-
Step 950
950
#371542
oklch(27% 0.088 317.1)
#BA51D8 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) | #2778DC | 0.206 |
| Deuteranopia (no green cones) | #5783D5 | 0.178 |
| Tritanopia (no blue cones) | #B9688D | 0.135 |
| Achromatopsia (no color) | #7F7F7F | 0.214 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #BA51D8
#BA51D8
oklch(62.4% 0.213 318)
- #40A000
#40A000
oklch(62.3% 0.193 138.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 #BA51D8, closest first.
No curated palette has a color within ΔE 0.04 of #BA51D8.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Medium Orchid #BA55D3 ΔE 0.011
- Pinky Purple #C94CBE ΔE 0.049
- Lighter Purple #A55AF4 ΔE 0.058
- Purpley Pink #C83CB9 ΔE 0.059
- Bright Lilac #C95EFB ΔE 0.061
- Bright Lavender #C760FF ΔE 0.066
- Heliotrope #D94FF5 ΔE 0.069
- Light Urple #B36FF6 ΔE 0.070
Use #BA51D8 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.