#532798#532798

#532798 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.172 H 295.3°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#532798
RGBrgb(83, 39, 152)
HSLhsl(263, 59%, 37%)
HSVhsv(263, 74%, 60%)
CMYKcmyk(45.4%, 74.3%, 0%, 40.4%)
CIE-LABlab(28.27, 44.92, -54.18)
CIE-LCHlch(28.27, 70.38, 309.66°)
OKLaboklab(40.17% 0.0733 -0.1551)
OKLCHoklch(40.17% 0.172 295.3)
XYZxyz(9.9588, 5.5568, 30.2475)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#532798 #6C9827
analogous
#273398 #532798 #8C2798
triadic
#532798 #985327 #279853
tetradic
#532798 #982733 #6C9827 #27988C
square
#532798 #982733 #6C9827 #27988C
split-complementary
#532798 #988C27 #339827
monochromatic
#1E0E37 #381B67 #532798 #6E33C9 #9063D7

Accessibility & contrast

On white

9.95
#532798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#532798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #532798
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##532798#FFFFFF#000000##FFFFFF
##5327981.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#40445D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #532798;
/* rgb */ color: rgb(83, 39, 152);
/* oklch */ color: oklch(40.2% 0.172 295.3);
Tailwind
colors: {
  custom: {
    50: '#8a65b7',
    500: '#532798',
    950: '#000000',
  },
}
SCSS
$custom: #532798;
$custom-light: #8a65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#532798",
  "rgb": {
    "r": 83,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 263.363,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40168,
    "c": 0.17161,
    "h": 295.3
  },
  "luminance": 0.05557
}

Semantic roles & 50–950 ramp

primary
#532798
secondary
#98BC5E
accent
#E245A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #532798

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

Preview Lab → · Contrast checker → · Palette generator →

#532798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva