#5B21B6 Grape
The nearest named color to #5B21B6 is Grape (#6F2DA8).
#5B21B6
Grape
What are the RGB, HSL, OKLCH and CMYK values of #5B21B6?
- HEX
- #5B21B6
- RGB
- rgb(91, 33, 182)
- HSL
- hsl(263, 69%, 42%)
- OKLCH
- oklch(43.2% 0.211 293)
- CMYK
- 50, 82, 0, 29
#5B21B6 has a contrast ratio of 8.98:1 against white and 2.34:1 against black, so white is the better background for text in this color and light text reads best on it.
Contrast checker
Text color (rows) on background (columns), scored against WCAG 2.2. White and near-black text on this color.
| Text ↓ / Bg → | #5B21B6 |
|---|---|
| #5B21B6 | Same color |
| White | 9.0AAA |
| Near-black | 1.9Fail |
AAA ≥ 7:1 · AA ≥ 4.5:1 body text· AA18 ≥ 3:1 large text (18pt, or 14pt bold) only
Text that works on each color
- White on #5B21B6 · 9.0:1
Tints and shades of #5B21B6
Same hue and chroma in OKLCH, lighter to darker.
Colors that go with #5B21B6
Six harmony rules built from this color. Open any in the Studio.
- AnalogousNeighboring hues. Calm and cohesive, with little tension.
- ComplementaryOpposite hues. Maximum contrast — strong for accents.
- SplitA hue plus the two neighbors of its opposite. Contrast without the clash.
- TriadicThree evenly spaced hues. Vivid and balanced.
- TetradicFour hues in two complementary pairs. Rich, and easy to overuse.
- MonoOne hue across a range of lightness. Always harmonious.
Color blindness check
About 1 in 12 men and 1 in 200 women see color differently. Simulated with the Machado (2009) model.
No green cones — the most common form. Grape, #5B21B6 and Klein Blue, #1B2893 become hard to tell apart — don't rely on color alone to separate them.
Export
Copy-paste code, or download the swatches.
:root {
--grape-1: #5B21B6; /* Grape */
}Palettes, gradients and meshes with #5B21B6
Items using this color or one perceptually close to it, closest first.