#532A87#532A87

#532A87 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.148 H 299.8°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#532A87
RGBrgb(83, 42, 135)
HSLhsl(266, 53%, 35%)
HSVhsv(266, 69%, 53%)
CMYKcmyk(38.5%, 68.9%, 0%, 47.1%)
CIE-LABlab(27.42, 38.76, -45.05)
CIE-LCHlch(27.42, 59.43, 310.71°)
OKLaboklab(39.13% 0.0734 -0.1283)
OKLCHoklch(39.13% 0.148 299.8)
XYZxyz(8.7673, 5.2441, 23.4673)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#532A87 #5E872A
analogous
#2A2F87 #532A87 #822A87
triadic
#532A87 #87532A #2A8753
tetradic
#532A87 #872A2F #5E872A #2A8782
square
#532A87 #872A2F #5E872A #2A8782
split-complementary
#532A87 #87822A #2F872A
monochromatic
#1A0D2A #361B58 #532A87 #7039B6 #8F5ECD

Accessibility & contrast

On white

10.25
#532A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#532A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #532A87
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##532A87#FFFFFF#000000##FFFFFF
##532A871.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#474055
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #532a87;
/* rgb */ color: rgb(83, 42, 135);
/* oklch */ color: oklch(39.1% 0.148 299.8);
Tailwind
colors: {
  custom: {
    50: '#8867ab',
    500: '#532a87',
    950: '#000000',
  },
}
SCSS
$custom: #532a87;
$custom-light: #8867ab;
$custom-dark: #000000;
JSON
{
  "hex": "#532a87",
  "rgb": {
    "r": 83,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 266.452,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39128,
    "c": 0.14783,
    "h": 299.8
  },
  "luminance": 0.05244
}

Semantic roles & 50–950 ramp

primary
#532A87
secondary
#8CB35A
accent
#DC4C9C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #532A87

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

Preview Lab → · Contrast checker → · Palette generator →

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