#532A98#532A98

#532A98 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.168 H 294.8°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#532A98
RGBrgb(83, 42, 152)
HSLhsl(262, 57%, 38%)
HSVhsv(262, 72%, 60%)
CMYKcmyk(45.4%, 72.4%, 0%, 40.4%)
CIE-LABlab(28.80, 43.41, -53.30)
CIE-LCHlch(28.80, 68.74, 309.16°)
OKLaboklab(40.55% 0.0705 -0.1526)
OKLCHoklch(40.55% 0.168 294.8)
XYZxyz(10.0612, 5.7617, 30.2817)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#532A98 #6F982A
analogous
#2A3898 #532A98 #8A2A98
triadic
#532A98 #98532A #2A9853
tetradic
#532A98 #982A38 #6F982A #2A988A
square
#532A98 #982A38 #6F982A #2A988A
split-complementary
#532A98 #988A2A #38982A
monochromatic
#1F1038 #391D68 #532A98 #6D37C8 #9067D5

Accessibility & contrast

On white

9.76
#532A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#532A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #532A98
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##532A98#FFFFFF#000000##FFFFFF
##532A981.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#40465E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #532a98;
/* rgb */ color: rgb(83, 42, 152);
/* oklch */ color: oklch(40.5% 0.168 294.8);
Tailwind
colors: {
  custom: {
    50: '#8a67b7',
    500: '#532a98',
    950: '#000000',
  },
}
SCSS
$custom: #532a98;
$custom-light: #8a67b7;
$custom-dark: #000000;
JSON
{
  "hex": "#532a98",
  "rgb": {
    "r": 83,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 262.364,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40548,
    "c": 0.16807,
    "h": 294.8
  },
  "luminance": 0.05762
}

Semantic roles & 50–950 ramp

primary
#532A98
secondary
#9ABB62
accent
#E048A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #532A98

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

Preview Lab → · Contrast checker → · Palette generator →

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