Eggplant color: hex codes, shades and palettes
Palettes built around eggplant. Click any swatch to copy its hex code.
A deep purple with brown in it, the colour of the vegetable skin. Dark and warm, which separates it from a cool violet at the same lightness.
No eggplant palettes yet
Run npm run generate to build the dataset.
Eggplant hex, RGB, HSL and OKLCH
- HEX
#4B2E4A- RGB
rgb(75, 46, 74)- HSL
hsl(302, 24%, 24%)- OKLCH
oklch(34.8% 0.061 328.0)- On white
- 11.74:1
- On black
- 1.79:1
Shades of eggplant
Eleven steps from one base color, generated in OKLCH so each step is an equal perceived step rather than an equal numeric one. Click a swatch to copy it.
Contrast and readability
Eggplant on white measures 11.74:1 and on black 1.79:1. WCAG AA asks for 4.5:1 on normal text and 3:1 on large text and UI components, so the higher of those two decides which background it belongs on. In the scale above, 500 is the first to clear 4.5:1 on white, at 5.42:1.
The contrast checker reports every level for a given pair and suggests the nearest passing shade on the same hue. The color picker builds this same scale from any color you paste in.
Related colors:purple, lavender, violet, lilac, plum, indigo. See every shade on the colors index.