#5E22A0#5E22A0

#5E22A0 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.187 H 299.6°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5E22A0
RGBrgb(94, 34, 160)
HSLhsl(269, 65%, 38%)
HSVhsv(269, 79%, 63%)
CMYKcmyk(41.3%, 78.8%, 0%, 37.3%)
CIE-LABlab(29.57, 51.11, -56.87)
CIE-LCHlch(29.57, 76.47, 311.95°)
OKLaboklab(41.61% 0.0923 -0.1626)
OKLCHoklch(41.61% 0.187 299.6)
XYZxyz(11.5317, 6.0617, 33.8134)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E22A0 #64A022
analogous
#2225A0 #5E22A0 #9D22A0
triadic
#5E22A0 #A05E22 #22A05E
tetradic
#5E22A0 #A02225 #64A022 #22A09D
square
#5E22A0 #A02225 #64A022 #22A09D
split-complementary
#5E22A0 #A09D22 #25A022
monochromatic
#230D3B #40176E #5E22A0 #7C2DD2 #9B5FDD

Accessibility & contrast

On white

9.49
#5E22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5E22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E22A0
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E22A0#FFFFFF#000000##FFFFFF
##5E22A01.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#4E4461
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e22a0;
/* rgb */ color: rgb(94, 34, 160);
/* oklch */ color: oklch(41.6% 0.187 299.6);
Tailwind
colors: {
  custom: {
    50: '#9264bd',
    500: '#5e22a0',
    950: '#000000',
  },
}
SCSS
$custom: #5e22a0;
$custom-light: #9264bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e22a0",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 268.571,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41607,
    "c": 0.187,
    "h": 299.6
  },
  "luminance": 0.06062
}

Semantic roles & 50–950 ramp

primary
#5E22A0
secondary
#91C25C
accent
#E84098
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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