#532198#532198

#532198 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.178 H 296.2°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#532198
RGBrgb(83, 33, 152)
HSLhsl(265, 64%, 36%)
HSVhsv(265, 78%, 60%)
CMYKcmyk(45.4%, 78.3%, 0%, 40.4%)
CIE-LABlab(27.28, 47.73, -55.79)
CIE-LCHlch(27.28, 73.42, 310.55°)
OKLaboklab(39.47% 0.0786 -0.1598)
OKLCHoklch(39.47% 0.178 296.2)
XYZxyz(9.7771, 5.1935, 30.1870)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#532198 #669821
analogous
#212B98 #532198 #8F2198
triadic
#532198 #985321 #219853
tetradic
#532198 #98212B #669821 #21988F
square
#532198 #98212B #669821 #21988F
split-complementary
#532198 #988F21 #2B9821
monochromatic
#1C0B33 #381666 #532198 #6E2CCA #8F59DB

Accessibility & contrast

On white

10.30
#532198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#532198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #532198
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##532198#FFFFFF#000000##FFFFFF
##5321981.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#40425C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #532198;
/* rgb */ color: rgb(83, 33, 152);
/* oklch */ color: oklch(39.5% 0.178 296.2);
Tailwind
colors: {
  custom: {
    50: '#8b62b7',
    500: '#532198',
    950: '#000000',
  },
}
SCSS
$custom: #532198;
$custom-light: #8b62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#532198",
  "rgb": {
    "r": 83,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 265.21,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39474,
    "c": 0.17814,
    "h": 296.2
  },
  "luminance": 0.05194
}

Semantic roles & 50–950 ramp

primary
#532198
secondary
#93BF56
accent
#E740A1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #532198

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

Preview Lab → · Contrast checker → · Palette generator →

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