#5325A2#5325A2

#5325A2 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.185 H 293.1°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5325A2
RGBrgb(83, 37, 162)
HSLhsl(262, 63%, 39%)
HSVhsv(262, 77%, 64%)
CMYKcmyk(48.8%, 77.2%, 0%, 36.5%)
CIE-LABlab(28.83, 48.58, -59.36)
CIE-LCHlch(28.83, 76.70, 309.30°)
OKLaboklab(40.84% 0.0725 -0.1703)
OKLCHoklch(40.84% 0.185 293.1)
XYZxyz(10.7486, 5.7704, 34.7229)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5325A2 #74A225
analogous
#2536A2 #5325A2 #9225A2
triadic
#5325A2 #A25325 #25A253
tetradic
#5325A2 #A22536 #74A225 #25A292
square
#5325A2 #A22536 #74A225 #25A292
split-complementary
#5325A2 #A29225 #36A225
monochromatic
#200E3E #391A70 #5325A2 #6D34D1 #9165DC

Accessibility & contrast

On white

9.75
#5325A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5325A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5325A2
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5325A2#FFFFFF#000000##FFFFFF
##5325A21.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A6
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#3A4762
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5325a2;
/* rgb */ color: rgb(83, 37, 162);
/* oklch */ color: oklch(40.8% 0.185 293.1);
Tailwind
colors: {
  custom: {
    50: '#8c65bf',
    500: '#5325a2',
    950: '#000000',
  },
}
SCSS
$custom: #5325a2;
$custom-light: #8c65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5325a2",
  "rgb": {
    "r": 83,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 262.08,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40837,
    "c": 0.18511,
    "h": 293.1
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#5325A2
secondary
#9EC261
accent
#E642AA
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5325A2

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

Preview Lab → · Contrast checker → · Palette generator →

#5325A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva