#5D22A9#5D22A9

#5D22A9 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.3% C 0.196 H 296.7°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#5D22A9
RGBrgb(93, 34, 169)
HSLhsl(266, 67%, 40%)
HSVhsv(266, 80%, 66%)
CMYKcmyk(45%, 79.9%, 0%, 33.7%)
CIE-LABlab(30.24, 53.21, -61.21)
CIE-LCHlch(30.24, 81.10, 311.00°)
OKLaboklab(42.3% 0.0881 -0.1754)
OKLCHoklch(42.3% 0.196 296.7)
XYZxyz(12.2458, 6.3355, 38.1061)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D22A9 #6EA922
analogous
#222BA9 #5D22A9 #A022A9
triadic
#5D22A9 #A95D22 #22A95D
tetradic
#5D22A9 #A9222B #6EA922 #22A9A0
square
#5D22A9 #A9222B #6EA922 #22A9A0
split-complementary
#5D22A9 #A9A022 #2BA922
monochromatic
#250D43 #411876 #5D22A9 #7A32D6 #9B65E0

Accessibility & contrast

On white

9.26
#5D22A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5D22A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D22A9
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D22A9#FFFFFF#000000##FFFFFF
##5D22A91.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#484866
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d22a9;
/* rgb */ color: rgb(93, 34, 169);
/* oklch */ color: oklch(42.3% 0.196 296.7);
Tailwind
colors: {
  custom: {
    50: '#9365c4',
    500: '#5d22a9',
    950: '#000000',
  },
}
SCSS
$custom: #5d22a9;
$custom-light: #9365c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d22a9",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 169
  },
  "hsl": {
    "h": 266.222,
    "s": 66.502,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42297,
    "c": 0.19628,
    "h": 296.7
  },
  "luminance": 0.06336
}

Semantic roles & 50–950 ramp

primary
#5D22A9
secondary
#9AC561
accent
#E93E9F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D22A9

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

Preview Lab → · Contrast checker → · Palette generator →

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