#5D22A1#5D22A1

#5D22A1 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.6% C 0.188 H 298.8°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#5D22A1
RGBrgb(93, 34, 161)
HSLhsl(268, 65%, 38%)
HSVhsv(268, 79%, 63%)
CMYKcmyk(42.2%, 78.9%, 0%, 36.9%)
CIE-LABlab(29.52, 51.20, -57.56)
CIE-LCHlch(29.52, 77.03, 311.66°)
OKLaboklab(41.58% 0.0905 -0.1647)
OKLCHoklch(41.58% 0.188 298.8)
XYZxyz(11.5176, 6.0443, 34.2711)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D22A1 #66A122
analogous
#2226A1 #5D22A1 #9C22A1
triadic
#5D22A1 #A15D22 #22A15D
tetradic
#5D22A1 #A12226 #66A122 #22A19C
square
#5D22A1 #A12226 #66A122 #22A19C
split-complementary
#5D22A1 #A19C22 #26A122
monochromatic
#230D3C #40176E #5D22A1 #7A2DD3 #9A60DD

Accessibility & contrast

On white

9.51
#5D22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5D22A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D22A1
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D22A1#FFFFFF#000000##FFFFFF
##5D22A11.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#4C4561
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d22a1;
/* rgb */ color: rgb(93, 34, 161);
/* oklch */ color: oklch(41.6% 0.188 298.8);
Tailwind
colors: {
  custom: {
    50: '#9264be',
    500: '#5d22a1',
    950: '#000000',
  },
}
SCSS
$custom: #5d22a1;
$custom-light: #9264be;
$custom-dark: #000000;
JSON
{
  "hex": "#5d22a1",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 267.874,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41575,
    "c": 0.18791,
    "h": 298.8
  },
  "luminance": 0.06044
}

Semantic roles & 50–950 ramp

primary
#5D22A1
secondary
#93C25D
accent
#E8409A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D22A1

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

Preview Lab → · Contrast checker → · Palette generator →

#5D22A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva