#CB21FB
Closest named color: Hot Purple (#CB00F5). oklch(63.1% 0.293 316.6), rgb(203, 33, 251).
Aa
Black text reads best on this color (5.14:1).
About this color
#CB21FB is a medium-light, vivid purple. In OKLCH its lightness is 63%, its chroma 0.293 and its hue 317°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Hot Purple (#CB00F5), ΔE 0.017 away. Black text reads best on it, at 5.14:1.
| Hue family | Purples |
| Lightness | medium-light (63%) |
| Chroma | vivid (0.293) |
| Temperature | in between |
| Nearest name | Hot Purple (#CB00F5) |
| Black text | 5.14:1 |
| White text | 4.07:1 |
Values
| HEX | #CB21FB |
| RGB | rgb(203, 33, 251) |
| HSL | hsl(287, 96%, 56%) |
| OKLCH | oklch(63.1% 0.293 316.6) |
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 #CB21FB | 4.07:1 | AA large text | Lc -71.5 | Content text, not long reading |
| Black text on #CB21FB | 5.14:1 | AA | Lc 38.0 | Non-text elements, placeholder text |
| #CB21FB text on white | 4.07:1 | AA large text | Lc 66.0 | Content text, not long reading |
| #CB21FB text on black | 5.14:1 | AA | Lc -35.6 | 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
#FBF2FE
oklch(97.2% 0.018 317.7)
-
Step 100
100
#F5E2FD
oklch(93.6% 0.041 316)
-
Step 200
200
#EFC9FD
oklch(88.5% 0.081 316.9)
-
Step 300
300
#E5A2FE
oklch(80.8% 0.144 316.5)
-
Step 400
400
#D767FD
oklch(70.7% 0.229 316.7)
-
Step 500
500 (this color)
#CB21FB
oklch(63.1% 0.293 316.6)
-
Step 600
600
#AE00D9
oklch(55.7% 0.272 316.6)
-
Step 700
700
#9300B8
oklch(49.2% 0.24 316.6)
-
Step 800
800
#790098
oklch(42.7% 0.209 316.6)
-
Step 900
900
#650080
oklch(37.6% 0.184 316.3)
-
Step 950
950
#3C064C
oklch(26.9% 0.121 316.6)
#CB21FB 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) | #0074FF | 0.261 |
| Deuteranopia (no green cones) | #1D82F7 | 0.261 |
| Tritanopia (no blue cones) | #C85D96 | 0.185 |
| Achromatopsia (no color) | #7E7E7E | 0.296 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #CB21FB
#CB21FB
oklch(63.1% 0.293 316.6)
- #4BA200
#4BA200
oklch(63.3% 0.19 136.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 #CB21FB, closest first.
No curated palette has a color within ΔE 0.04 of #CB21FB.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Hot Purple #CB00F5 ΔE 0.017
- Bright Purple #BE03FD ΔE 0.032
- Neon Purple #BC13FE ΔE 0.033
- Purple Pink #D725DE ΔE 0.052
- Bright Violet #AD0AFD ΔE 0.063
- Heliotrope #D94FF5 ΔE 0.064
- Electric Purple #AA23FF ΔE 0.066
- Vibrant Purple #AD03DE ΔE 0.075
Use #CB21FB 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.