#5531A2#5531A2

#5531A2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.172 H 292.1°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5531A2
RGBrgb(85, 49, 162)
HSLhsl(259, 54%, 41%)
HSVhsv(259, 70%, 64%)
CMYKcmyk(47.5%, 69.8%, 0%, 36.5%)
CIE-LABlab(31.20, 42.88, -55.47)
CIE-LCHlch(31.20, 70.11, 307.71°)
OKLaboklab(42.57% 0.0646 -0.1589)
OKLCHoklch(42.57% 0.172 292.1)
XYZxyz(11.3644, 6.7362, 34.8768)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5531A2 #7EA231
analogous
#3146A2 #5531A2 #8E31A2
triadic
#5531A2 #A25531 #31A255
tetradic
#5531A2 #A23146 #7EA231 #31A28E
square
#5531A2 #A23146 #7EA231 #31A28E
split-complementary
#5531A2 #A28E31 #46A231
monochromatic
#241544 #3C2373 #5531A2 #7148C8 #9677D6

Accessibility & contrast

On white

8.95
#5531A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5531A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5531A2
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5531A2#FFFFFF#000000##FFFFFF
##5531A21.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#3D4D65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5531a2;
/* rgb */ color: rgb(85, 49, 162);
/* oklch */ color: oklch(42.6% 0.172 292.1);
Tailwind
colors: {
  custom: {
    50: '#8c6cbe',
    500: '#5531a2',
    950: '#000000',
  },
}
SCSS
$custom: #5531a2;
$custom-light: #8c6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5531a2",
  "rgb": {
    "r": 85,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 259.115,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42568,
    "c": 0.17153,
    "h": 292.1
  },
  "luminance": 0.06737
}

Semantic roles & 50–950 ramp

primary
#5531A2
secondary
#A5BE71
accent
#DD4BAE
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5531A2

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5531A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva