#5B54A5
Closest named color: Twilight (#4E518B). oklch(49.3% 0.126 284.7), rgb(91, 84, 165).
Aa
White text reads best on this color (6.44:1).
About this color
#5B54A5 is a medium-dark, moderately saturated purple. In OKLCH its lightness is 49%, its chroma 0.126 and its hue 285°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight (#4E518B), ΔE 0.047 away. White text reads best on it, at 6.44:1.
| Hue family | Purples |
| Lightness | medium-dark (49%) |
| Chroma | moderately saturated (0.126) |
| Temperature | cool |
| Nearest name | Twilight (#4E518B) |
| Black text | 3.25:1 |
| White text | 6.44:1 |
Values
| HEX | #5B54A5 |
| RGB | rgb(91, 84, 165) |
| HSL | hsl(245, 33%, 49%) |
| OKLCH | oklch(49.3% 0.126 284.7) |
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 #5B54A5 | 6.44:1 | AA | Lc -86.9 | Fine for body text |
| Black text on #5B54A5 | 3.25:1 | AA large text | Lc 22.2 | Dividers and decoration only |
| #5B54A5 text on white | 6.44:1 | AA | Lc 81.8 | Fine for body text |
| #5B54A5 text on black | 3.25:1 | AA large text | Lc -20.0 | 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 700.
-
Step 50
50
#F5F5FB
oklch(97.2% 0.008 286.3)
-
Step 100
100
#E8E8F6
oklch(93.5% 0.019 286)
-
Step 200
200
#D6D7EF
oklch(88.6% 0.033 283.8)
-
Step 300
300
#BCBCE7
oklch(81% 0.06 285)
-
Step 400
400
#9A98DB
oklch(70.7% 0.097 285)
-
Step 500
500
#827DD1
oklch(63% 0.124 284.9)
-
Step 600
600
#6C65BF
oklch(55.6% 0.136 284.6)
-
Step 700
700 (this color)
#5B54A5
oklch(49.3% 0.126 284.7)
-
Step 800
800
#4A4585
oklch(42.8% 0.103 284.7)
-
Step 900
900
#3D3A6B
oklch(37.6% 0.082 284.5)
-
Step 950
950
#24223E
oklch(26.9% 0.051 285.7)
#5B54A5 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) | #3261A8 | 0.057 |
| Deuteranopia (no green cones) | #2F5CA3 | 0.057 |
| Tritanopia (no blue cones) | #446574 | 0.108 |
| Achromatopsia (no color) | #5E5E5E | 0.126 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #5B54A5
#5B54A5
oklch(49.3% 0.126 284.7)
- #6B6400
#6B6400
oklch(49.4% 0.105 104.8)
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 #5B54A5, closest first.
No curated palette has a color within ΔE 0.04 of #5B54A5.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Twilight #4E518B ΔE 0.047
- Iris #6258C4 ΔE 0.050
- Dusky Blue #475F94 ΔE 0.051
- Denim Blue #3B5B92 ΔE 0.058
- Dusk #4E5481 ΔE 0.063
- French Blue #436BAD ΔE 0.065
- Blueberry #464196 ΔE 0.065
- Slate Blue #6A5ACD ΔE 0.068
Use #5B54A5 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.