#B840D4
Closest named color: Medium Orchid (#BA55D3). oklch(60.1% 0.23 319.4), rgb(184, 64, 212).
Aa
Black text reads best on this color (4.72:1).
About this color
#B840D4 is a medium-dark, vivid purple. In OKLCH its lightness is 60%, its chroma 0.230 and its hue 319°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Medium Orchid (#BA55D3), ΔE 0.037 away. Black text reads best on it, at 4.72:1.
| Hue family | Purples |
| Lightness | medium-dark (60%) |
| Chroma | vivid (0.230) |
| Temperature | in between |
| Nearest name | Medium Orchid (#BA55D3) |
| Black text | 4.72:1 |
| White text | 4.44:1 |
Values
| HEX | #B840D4 |
| RGB | rgb(184, 64, 212) |
| HSL | hsl(289, 63%, 54%) |
| OKLCH | oklch(60.1% 0.23 319.4) |
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 #B840D4 | 4.44:1 | AA large text | Lc -75.3 | Fine for body text |
| Black text on #B840D4 | 4.72:1 | AA | Lc 34.2 | Non-text elements, placeholder text |
| #B840D4 text on white | 4.44:1 | AA large text | Lc 69.9 | Content text, not long reading |
| #B840D4 text on black | 4.72:1 | AA | Lc -31.8 | 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
#FAF2FC
oklch(97% 0.016 319.4)
-
Step 100
100
#F4E3F8
oklch(93.6% 0.033 319.8)
-
Step 200
200
#ECCDF4
oklch(88.6% 0.062 319.3)
-
Step 300
300
#E0A9EF
oklch(80.9% 0.113 318.9)
-
Step 400
400
#D077E6
oklch(70.8% 0.179 319.4)
-
Step 500
500 (this color)
#B840D4
oklch(60.1% 0.23 319.4)
-
Step 600
600
#AE1FCC
oklch(55.7% 0.25 319.4)
-
Step 700
700
#9508B0
oklch(49.1% 0.232 319.5)
-
Step 800
800
#79128F
oklch(42.7% 0.192 319.3)
-
Step 900
900
#621B72
oklch(37.8% 0.15 319.5)
-
Step 950
950
#391243
oklch(27% 0.095 318.8)
#B840D4 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) | #0070D8 | 0.228 |
| Deuteranopia (no green cones) | #4B7CD1 | 0.198 |
| Tritanopia (no blue cones) | #B85C86 | 0.142 |
| Achromatopsia (no color) | #777777 | 0.232 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #B840D4
#B840D4
oklch(60.1% 0.23 319.4)
- #339900
#339900
oklch(60% 0.191 139.4)
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 #B840D4, closest first.
No curated palette has a color within ΔE 0.04 of #B840D4.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Medium Orchid #BA55D3 ΔE 0.037
- Purpley Pink #C83CB9 ΔE 0.053
- Pinky Purple #C94CBE ΔE 0.057
- Purple Pink #D725DE ΔE 0.062
- Vibrant Purple #AD03DE ΔE 0.063
- Dark Orchid #9932CC ΔE 0.067
- Lighter Purple #A55AF4 ΔE 0.071
- Hot Purple #CB00F5 ΔE 0.072
Use #B840D4 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.