#5722A5#5722A5

#5722A5 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.192 H 294.7°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5722A5
RGBrgb(87, 34, 165)
HSLhsl(264, 66%, 39%)
HSVhsv(264, 79%, 65%)
CMYKcmyk(47.3%, 79.4%, 0%, 35.3%)
CIE-LABlab(29.12, 51.30, -60.66)
CIE-LCHlch(29.12, 79.45, 310.22°)
OKLaboklab(41.24% 0.0802 -0.174)
OKLCHoklch(41.24% 0.192 294.7)
XYZxyz(11.2922, 5.8866, 36.1313)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5722A5 #70A522
analogous
#222FA5 #5722A5 #9922A5
triadic
#5722A5 #A55722 #22A557
tetradic
#5722A5 #A5222F #70A522 #22A599
square
#5722A5 #A5222F #70A522 #22A599
split-complementary
#5722A5 #A59922 #2FA522
monochromatic
#210D40 #3C1872 #5722A5 #7230D4 #9563DF

Accessibility & contrast

On white

9.64
#5722A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5722A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5722A5
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5722A5#FFFFFF#000000##FFFFFF
##5722A51.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#404763
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5722a5;
/* rgb */ color: rgb(87, 34, 165);
/* oklch */ color: oklch(41.2% 0.192 294.7);
Tailwind
colors: {
  custom: {
    50: '#8f64c1',
    500: '#5722a5',
    950: '#000000',
  },
}
SCSS
$custom: #5722a5;
$custom-light: #8f64c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5722a5",
  "rgb": {
    "r": 87,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 264.275,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41239,
    "c": 0.19156,
    "h": 294.7
  },
  "luminance": 0.05887
}

Semantic roles & 50–950 ramp

primary
#5722A5
secondary
#9BC45F
accent
#E93FA4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5722A5

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

Preview Lab → · Contrast checker → · Palette generator →

#5722A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva