#5D22A0#5D22A0

#5D22A0 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.187 H 299.1°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5D22A0
RGBrgb(93, 34, 160)
HSLhsl(268, 65%, 38%)
HSVhsv(268, 79%, 63%)
CMYKcmyk(41.9%, 78.8%, 0%, 37.3%)
CIE-LABlab(29.44, 50.95, -57.09)
CIE-LCHlch(29.44, 76.52, 311.75°)
OKLaboklab(41.49% 0.0908 -0.1633)
OKLCHoklch(41.49% 0.187 299.1)
XYZxyz(11.4298, 6.0091, 33.8086)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D22A0 #65A022
analogous
#2226A0 #5D22A0 #9C22A0
triadic
#5D22A0 #A05D22 #22A05D
tetradic
#5D22A0 #A02226 #65A022 #22A09C
square
#5D22A0 #A02226 #65A022 #22A09C
split-complementary
#5D22A0 #A09C22 #26A022
monochromatic
#220D3B #40176E #5D22A0 #7A2DD2 #9A5FDD

Accessibility & contrast

On white

9.54
#5D22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5D22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D22A0
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D22A0#FFFFFF#000000##FFFFFF
##5D22A01.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#4D4461
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d22a0;
/* rgb */ color: rgb(93, 34, 160);
/* oklch */ color: oklch(41.5% 0.187 299.1);
Tailwind
colors: {
  custom: {
    50: '#9264bd',
    500: '#5d22a0',
    950: '#000000',
  },
}
SCSS
$custom: #5d22a0;
$custom-light: #9264bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d22a0",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 268.095,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41486,
    "c": 0.18686,
    "h": 299.1
  },
  "luminance": 0.06009
}

Semantic roles & 50–950 ramp

primary
#5D22A0
secondary
#92C25C
accent
#E84099
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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