Accessibility
Vs white / black
8.79:1 · 2.39:1
Sources
Codes
HEX
#552fac
RGB
rgb(85, 47, 172)
RGBA
rgba(85, 47, 172, 1)
HSL
hsl(258, 57%, 43%)
HSLA
hsla(258, 57%, 43%, 1)
HSV
hsv(258, 73%, 67%)
LAB
lab(31.68% 46.77 -60.7)
LCH
lch(31.68% 76.63 307.61)
OKLAB
oklab(0.4317 0.0645 -0.1743)
OKLCH
oklch(0.4317 0.1859 290.31)
XYZ
xyz(12.21, 6.94, 39.72)
CMYK
cmyk(51%, 73%, 0%, 33%)
CSS
color: #552fac;
CSS variable
--color-552fac: #552fac;
SCSS
$color-552fac: #552fac;
JavaScript
const color = "#552fac";
TypeScript
const color: string = "#552fac";
React
style={{ backgroundColor: "#552fac" }}
JSON
{ "hex": "#552fac", "rgb": { "r": 85, "g": 47, "b": 172 }, "oklch": "oklch(0.4317 0.1859 290.31)" }
Export
:root {
--#552fac-1: #552fac;
}Design systems
An arbitrary HEX is not an official Tailwind, Material, or Bootstrap color. Distance is CIEDE2000.
Nearest Tailwind color
violet-800
Noticeably different · ΔE 2.85 · #5B21B6
Nearest CSS named color
RebeccaPurple
Noticeably different · ΔE 4.94 · #663399
Nearest Material color
deep-purple-700
Very similar · ΔE 0.93 · #512DA8
Nearest Bootstrap color
secondary
Very different · ΔE 21.32 · #6C757D
OKLCH
Generated in OKLCH from this hex. Not an official Tailwind scale unless the hex itself is a Tailwind token.
Palette
Full scale from light tints through the base color into deep shades
Palette
Mixed toward white — soft backgrounds and highlights
Palette
Mixed toward black — depth, text, and emphasis
Palette
Mixed toward neutral grey — muted UI surfaces
Harmony
Opposite on the color wheel for contrast
Harmony
Neighbors that sit comfortably together
Harmony
Evenly spaced triad for vibrant sets
Harmony
Base plus two accents beside the complement
Harmony
Same hue, varied lightness and saturation
Using this color
#552FAC (#552fac) sits in the deep purple family at about 258° hue, 57% saturation, and 43% lightness. Contrast is 8.79:1 on white and 2.39:1 on black, so white labels read more clearly on the swatch itself. Nearest Tailwind token: violet-800 (approximation unless the hex is an official scale stop).
Sensible jobs for this swatch
On a black or near-black UI, #552fac is 2.39:1. Prefer it as a fill, border, or large heading rather than 16px copy.
Family context: Mystery, ambition, and creativity. Strong for artistic and spiritual associations. Common uses still include buttons, charts, and accents in the Deep Purple range — always verify the pair for this exact hex in the contrast checker.
Related
Nearby colors from the library by perceptual distance