#5A38AB
Closest named color: Rebecca Purple (#663399). oklch(44.8% 0.174 291.4), rgb(90, 56, 171).
Aa
White text reads best on this color (8.11:1).
About this color
#5A38AB is a dark, vivid purple. In OKLCH its lightness is 45%, its chroma 0.174 and its hue 291°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.038 away. White text reads best on it, at 8.11:1.
| Hue family | Purples |
| Lightness | dark (45%) |
| Chroma | vivid (0.174) |
| Temperature | in between |
| Nearest name | Rebecca Purple (#663399) |
| Black text | 2.58:1 |
| White text | 8.11:1 |
Values
| HEX | #5A38AB |
| RGB | rgb(90, 56, 171) |
| HSL | hsl(258, 51%, 45%) |
| OKLCH | oklch(44.8% 0.174 291.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 #5A38AB | 8.11:1 | AAA | Lc -92.2 | Preferred for body text |
| Black text on #5A38AB | 2.58:1 | Fails | Lc 16.5 | Dividers and decoration only |
| #5A38AB text on white | 8.11:1 | AAA | Lc 87.5 | Fine for body text |
| #5A38AB text on black | 2.58:1 | Fails | Lc -14.6 | Not readable |
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 800.
-
Step 50
50
#F5F4FE
oklch(97.1% 0.013 290.8)
-
Step 100
100
#E9E7FD
oklch(93.6% 0.03 290)
-
Step 200
200
#D9D3FC
oklch(88.5% 0.056 291.9)
-
Step 300
300
#C1B5FD
oklch(80.9% 0.101 291.6)
-
Step 400
400
#A38BFD
oklch(70.7% 0.163 291.3)
-
Step 500
500
#8F69FA
oklch(63.1% 0.207 291.4)
-
Step 600
600
#7B4AE9
oklch(55.6% 0.225 291.5)
-
Step 700
700
#6839CB
oklch(49.1% 0.21 291.4)
-
Step 800
800 (this color)
#5A38AB
oklch(44.8% 0.174 291.4)
-
Step 900
900
#452D82
oklch(37.6% 0.136 291.5)
-
Step 950
950
#281C4C
oklch(27% 0.085 291.2)
#5A38AB 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) | #0051AF | 0.099 |
| Deuteranopia (no green cones) | #004DA9 | 0.098 |
| Tritanopia (no blue cones) | #41546D | 0.138 |
| Achromatopsia (no color) | #505050 | 0.175 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #5A38AB
#5A38AB
oklch(44.8% 0.174 291.4)
- #575900
#575900
oklch(44.7% 0.098 111.3)
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 #5A38AB, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Rebecca Purple #663399 ΔE 0.038
- Blue With A Hint Of Purple #533CC6 ΔE 0.046
- Bluey Purple #6241C7 ΔE 0.050
- Blueberry #464196 ΔE 0.051
- Blurple #5539CC ΔE 0.054
- Dark Slate Blue #483D8B ΔE 0.061
- Chrysanthemum #560BAD ΔE 0.062
- Purple Blue #5D21D0 ΔE 0.065
Use #5A38AB 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.