#5E22A8#5E22A8

#5E22A8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.195 H 297.4°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5E22A8
RGBrgb(94, 34, 168)
HSLhsl(267, 66%, 40%)
HSVhsv(267, 80%, 66%)
CMYKcmyk(44%, 79.8%, 0%, 34.1%)
CIE-LABlab(30.28, 53.11, -60.54)
CIE-LCHlch(30.28, 80.53, 311.26°)
OKLaboklab(42.32% 0.09 -0.1734)
OKLCHoklch(42.32% 0.195 297.4)
XYZxyz(12.2541, 6.3507, 37.6184)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E22A8 #6CA822
analogous
#2229A8 #5E22A8 #A122A8
triadic
#5E22A8 #A85E22 #22A85E
tetradic
#5E22A8 #A82229 #6CA822 #22A8A1
square
#5E22A8 #A82229 #6CA822 #22A8A1
split-complementary
#5E22A8 #A8A122 #29A822
monochromatic
#250D42 #421875 #5E22A8 #7B32D5 #9C65E0

Accessibility & contrast

On white

9.25
#5E22A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E22A8
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E22A8#FFFFFF#000000##FFFFFF
##5E22A81.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#4A4865
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e22a8;
/* rgb */ color: rgb(94, 34, 168);
/* oklch */ color: oklch(42.3% 0.195 297.4);
Tailwind
colors: {
  custom: {
    50: '#9365c3',
    500: '#5e22a8',
    950: '#000000',
  },
}
SCSS
$custom: #5e22a8;
$custom-light: #9365c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e22a8",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 266.866,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42323,
    "c": 0.19535,
    "h": 297.4
  },
  "luminance": 0.06351
}

Semantic roles & 50–950 ramp

primary
#5E22A8
secondary
#98C561
accent
#E93F9D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E22A8

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

Preview Lab → · Contrast checker → · Palette generator →

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