#5B22A5#5B22A5

#5B22A5 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.192 H 296.7°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5B22A5
RGBrgb(91, 34, 165)
HSLhsl(266, 66%, 39%)
HSVhsv(266, 79%, 65%)
CMYKcmyk(44.8%, 79.4%, 0%, 35.3%)
CIE-LABlab(29.62, 51.90, -59.82)
CIE-LCHlch(29.62, 79.20, 310.94°)
OKLaboklab(41.7% 0.0863 -0.1714)
OKLCHoklch(41.7% 0.192 296.7)
XYZxyz(11.6761, 6.0846, 36.1493)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B22A5 #6CA522
analogous
#222BA5 #5B22A5 #9D22A5
triadic
#5B22A5 #A55B22 #22A55B
tetradic
#5B22A5 #A5222B #6CA522 #22A59D
square
#5B22A5 #A5222B #6CA522 #22A59D
split-complementary
#5B22A5 #A59D22 #2BA522
monochromatic
#230D40 #3F1872 #5B22A5 #7730D4 #9963DF

Accessibility & contrast

On white

9.47
#5B22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B22A5
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B22A5#FFFFFF#000000##FFFFFF
##5B22A51.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#474763
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b22a5;
/* rgb */ color: rgb(91, 34, 165);
/* oklch */ color: oklch(41.7% 0.192 296.7);
Tailwind
colors: {
  custom: {
    50: '#9164c1',
    500: '#5b22a5',
    950: '#000000',
  },
}
SCSS
$custom: #5b22a5;
$custom-light: #9164c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b22a5",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 266.107,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41699,
    "c": 0.19189,
    "h": 296.7
  },
  "luminance": 0.06085
}

Semantic roles & 50–950 ramp

primary
#5B22A5
secondary
#98C45F
accent
#E93F9F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5B22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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