#5D22A6#5D22A6

#5D22A6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.193 H 297.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5D22A6
RGBrgb(93, 34, 166)
HSLhsl(267, 66%, 39%)
HSVhsv(267, 80%, 65%)
CMYKcmyk(44%, 79.5%, 0%, 34.9%)
CIE-LABlab(29.97, 52.45, -59.85)
CIE-LCHlch(29.97, 79.58, 311.23°)
OKLaboklab(42.02% 0.089 -0.1714)
OKLCHoklch(42.02% 0.193 297.5)
XYZxyz(11.9674, 6.2242, 36.6399)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D22A6 #6BA622
analogous
#2229A6 #5D22A6 #9F22A6
triadic
#5D22A6 #A65D22 #22A65D
tetradic
#5D22A6 #A62229 #6BA622 #22A69F
square
#5D22A6 #A62229 #6BA622 #22A69F
split-complementary
#5D22A6 #A69F22 #29A622
monochromatic
#240D40 #411873 #5D22A6 #7A30D5 #9B63DF

Accessibility & contrast

On white

9.35
#5D22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5D22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D22A6
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D22A6#FFFFFF#000000##FFFFFF
##5D22A61.009.352.249.35
#FFFFFF9.351.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#4A4764
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d22a6;
/* rgb */ color: rgb(93, 34, 166);
/* oklch */ color: oklch(42.0% 0.193 297.5);
Tailwind
colors: {
  custom: {
    50: '#9265c1',
    500: '#5d22a6',
    950: '#000000',
  },
}
SCSS
$custom: #5d22a6;
$custom-light: #9265c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d22a6",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 266.818,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42024,
    "c": 0.19315,
    "h": 297.5
  },
  "luminance": 0.06224
}

Semantic roles & 50–950 ramp

primary
#5D22A6
secondary
#97C45F
accent
#E93F9D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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