#532AB5#532AB5

#532AB5 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.202 H 288.3°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#532AB5
RGBrgb(83, 42, 181)
HSLhsl(258, 62%, 44%)
HSVhsv(258, 77%, 71%)
CMYKcmyk(54.1%, 76.8%, 0%, 29%)
CIE-LABlab(31.42, 51.45, -66.50)
CIE-LCHlch(31.42, 84.09, 307.73°)
OKLaboklab(43.19% 0.0633 -0.1913)
OKLCHoklch(43.19% 0.202 288.3)
XYZxyz(12.7333, 6.8305, 44.3546)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#532AB5 #8CB52A
analogous
#2A46B5 #532AB5 #982AB5
triadic
#532AB5 #B5532A #2AB553
tetradic
#532AB5 #B52A46 #8CB52A #2AB598
square
#532AB5 #B52A46 #8CB52A #2AB598
split-complementary
#532AB5 #B5982A #46B52A
monochromatic
#251352 #3C1E83 #532AB5 #7148D4 #9879E0

Accessibility & contrast

On white

8.87
#532AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#532AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #532AB5
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##532AB5#FFFFFF#000000##FFFFFF
##532AB51.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#2B516E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #532ab5;
/* rgb */ color: rgb(83, 42, 181);
/* oklch */ color: oklch(43.2% 0.202 288.3);
Tailwind
colors: {
  custom: {
    50: '#8e69cc',
    500: '#532ab5',
    950: '#000000',
  },
}
SCSS
$custom: #532ab5;
$custom-light: #8e69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#532ab5",
  "rgb": {
    "r": 83,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 257.698,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43192,
    "c": 0.2015,
    "h": 288.3
  },
  "luminance": 0.06831
}

Semantic roles & 50–950 ramp

primary
#532AB5
secondary
#AFC873
accent
#E542B5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #532AB5

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

Preview Lab → · Contrast checker → · Palette generator →

#532AB5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva