#AB28CB
Closest named color: Dark Orchid (#9932CC). oklch(55.7% 0.242 318.5), rgb(171, 40, 203).
Aa
White text reads best on this color (5.38:1).
About this color
#AB28CB is a medium-dark, vivid purple. In OKLCH its lightness is 56%, its chroma 0.242 and its hue 318°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Orchid (#9932CC), ΔE 0.036 away. White text reads best on it, at 5.38:1.
| Hue family | Purples |
| Lightness | medium-dark (56%) |
| Chroma | vivid (0.242) |
| Temperature | in between |
| Nearest name | Dark Orchid (#9932CC) |
| Black text | 3.89:1 |
| White text | 5.38:1 |
Values
| HEX | #AB28CB |
| RGB | rgb(171, 40, 203) |
| HSL | hsl(288, 67%, 48%) |
| OKLCH | oklch(55.7% 0.242 318.5) |
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 #AB28CB | 5.38:1 | AA | Lc -80.8 | Fine for body text |
| Black text on #AB28CB | 3.89:1 | AA large text | Lc 28.7 | Dividers and decoration only |
| #AB28CB text on white | 5.38:1 | AA | Lc 75.4 | Fine for body text |
| #AB28CB text on black | 3.89:1 | AA large text | Lc -26.3 | Dividers and decoration only |
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 600.
-
Step 50
50
#FAF3FC
oklch(97.2% 0.014 318.7)
-
Step 100
100
#F3E4F8
oklch(93.7% 0.031 317.7)
-
Step 200
200
#EBCDF3
oklch(88.5% 0.061 319.1)
-
Step 300
300
#DFAAEE
oklch(80.9% 0.109 318.7)
-
Step 400
400
#CD79E5
oklch(70.7% 0.174 318.4)
-
Step 500
500
#BF4FDD
oklch(63.1% 0.222 318.5)
-
Step 600
600 (this color)
#AB28CB
oklch(55.7% 0.242 318.5)
-
Step 700
700
#9215AF
oklch(49% 0.225 318.5)
-
Step 800
800
#77188E
oklch(42.7% 0.186 318.5)
-
Step 900
900
#601E71
oklch(37.7% 0.144 318.6)
-
Step 950
950
#381342
oklch(26.9% 0.092 318.5)
#AB28CB 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) | #0062CF | 0.226 |
| Deuteranopia (no green cones) | #326EC8 | 0.212 |
| Tritanopia (no blue cones) | #AA4E7B | 0.150 |
| Achromatopsia (no color) | #6A6A6A | 0.244 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AB28CB
#AB28CB
oklch(55.7% 0.242 318.5)
- #338A00
#338A00
oklch(55.8% 0.174 138.6)
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 #AB28CB, closest first.
No curated palette has a color within ΔE 0.04 of #AB28CB.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Orchid #9932CC ΔE 0.036
- Vibrant Purple #AD03DE ΔE 0.036
- Purply #983FB2 ΔE 0.059
- Dark Violet #9400D3 ΔE 0.060
- Purpley Pink #C83CB9 ΔE 0.077
- Blue Violet #8A2BE2 ΔE 0.077
- Bright Violet #AD0AFD ΔE 0.078
- Medium Orchid #BA55D3 ΔE 0.079
Use #AB28CB 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.