#5D22A7#5D22A7

#5D22A7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.194 H 297.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5D22A7
RGBrgb(93, 34, 167)
HSLhsl(267, 66%, 39%)
HSVhsv(267, 80%, 65%)
CMYKcmyk(44.3%, 79.6%, 0%, 34.5%)
CIE-LABlab(30.06, 52.70, -60.31)
CIE-LCHlch(30.06, 80.09, 311.15°)
OKLaboklab(42.12% 0.0887 -0.1727)
OKLCHoklch(42.12% 0.194 297.2)
XYZxyz(12.0594, 6.2610, 37.1248)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D22A7 #6CA722
analogous
#2229A7 #5D22A7 #A022A7
triadic
#5D22A7 #A75D22 #22A75D
tetradic
#5D22A7 #A72229 #6CA722 #22A7A0
square
#5D22A7 #A72229 #6CA722 #22A7A0
split-complementary
#5D22A7 #A7A022 #29A722
monochromatic
#240D41 #411874 #5D22A7 #7A31D5 #9B64DF

Accessibility & contrast

On white

9.32
#5D22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5D22A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D22A7
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D22A7#FFFFFF#000000##FFFFFF
##5D22A71.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#494765
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d22a7;
/* rgb */ color: rgb(93, 34, 167);
/* oklch */ color: oklch(42.1% 0.194 297.2);
Tailwind
colors: {
  custom: {
    50: '#9265c2',
    500: '#5d22a7',
    950: '#000000',
  },
}
SCSS
$custom: #5d22a7;
$custom-light: #9265c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d22a7",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 266.617,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42115,
    "c": 0.1942,
    "h": 297.2
  },
  "luminance": 0.06261
}

Semantic roles & 50–950 ramp

primary
#5D22A7
secondary
#98C560
accent
#E93F9E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5D22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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