#532B98#532B98

#532B98 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.167 H 294.6°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#532B98
RGBrgb(83, 43, 152)
HSLhsl(262, 56%, 38%)
HSVhsv(262, 72%, 60%)
CMYKcmyk(45.4%, 71.7%, 0%, 40.4%)
CIE-LABlab(28.99, 42.89, -53.00)
CIE-LCHlch(28.99, 68.18, 308.98°)
OKLaboklab(40.68% 0.0695 -0.1517)
OKLCHoklch(40.68% 0.167 294.6)
XYZxyz(10.0971, 5.8335, 30.2937)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#532B98 #70982B
analogous
#2B3A98 #532B98 #892B98
triadic
#532B98 #98532B #2B9853
tetradic
#532B98 #982B3A #70982B #2B9889
square
#532B98 #982B3A #70982B #2B9889
split-complementary
#532B98 #98892B #3A982B
monochromatic
#1F1039 #391E68 #532B98 #6D39C7 #9069D5

Accessibility & contrast

On white

9.69
#532B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#532B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #532B98
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##532B98#FFFFFF#000000##FFFFFF
##532B981.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #532b98;
/* rgb */ color: rgb(83, 43, 152);
/* oklch */ color: oklch(40.7% 0.167 294.6);
Tailwind
colors: {
  custom: {
    50: '#8a68b7',
    500: '#532b98',
    950: '#000000',
  },
}
SCSS
$custom: #532b98;
$custom-light: #8a68b7;
$custom-dark: #000000;
JSON
{
  "hex": "#532b98",
  "rgb": {
    "r": 83,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 262.018,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4068,
    "c": 0.16685,
    "h": 294.6
  },
  "luminance": 0.05834
}

Semantic roles & 50–950 ramp

primary
#532B98
secondary
#9BBB64
accent
#DF49A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #532B98

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

Preview Lab → · Contrast checker → · Palette generator →

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