#5D22A5#5D22A5

#5D22A5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.192 H 297.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5D22A5
RGBrgb(93, 34, 165)
HSLhsl(267, 66%, 39%)
HSVhsv(267, 79%, 65%)
CMYKcmyk(43.6%, 79.4%, 0%, 35.3%)
CIE-LABlab(29.88, 52.20, -59.39)
CIE-LCHlch(29.88, 79.07, 311.31°)
OKLaboklab(41.93% 0.0893 -0.1701)
OKLCHoklch(41.93% 0.192 297.7)
XYZxyz(11.8760, 6.1876, 36.1586)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D22A5 #6AA522
analogous
#2229A5 #5D22A5 #9F22A5
triadic
#5D22A5 #A55D22 #22A55D
tetradic
#5D22A5 #A52229 #6AA522 #22A59F
square
#5D22A5 #A52229 #6AA522 #22A59F
split-complementary
#5D22A5 #A59F22 #29A522
monochromatic
#240D40 #401872 #5D22A5 #7A30D4 #9B63DF

Accessibility & contrast

On white

9.39
#5D22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D22A5
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D22A5#FFFFFF#000000##FFFFFF
##5D22A51.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#4A4663
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d22a5;
/* rgb */ color: rgb(93, 34, 165);
/* oklch */ color: oklch(41.9% 0.192 297.7);
Tailwind
colors: {
  custom: {
    50: '#9265c1',
    500: '#5d22a5',
    950: '#000000',
  },
}
SCSS
$custom: #5d22a5;
$custom-light: #9265c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d22a5",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 267.023,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41934,
    "c": 0.1921,
    "h": 297.7
  },
  "luminance": 0.06188
}

Semantic roles & 50–950 ramp

primary
#5D22A5
secondary
#96C45F
accent
#E93F9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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