#5E22A6#5E22A6

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

Color values

HEX#5E22A6
RGBrgb(94, 34, 166)
HSLhsl(267, 66%, 39%)
HSVhsv(267, 80%, 65%)
CMYKcmyk(43.4%, 79.5%, 0%, 34.9%)
CIE-LABlab(30.10, 52.61, -59.63)
CIE-LCHlch(30.10, 79.52, 311.42°)
OKLaboklab(42.14% 0.0906 -0.1707)
OKLCHoklch(42.14% 0.193 297.9)
XYZxyz(12.0693, 6.2767, 36.6446)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E22A6 #6AA622
analogous
#2228A6 #5E22A6 #A022A6
triadic
#5E22A6 #A65E22 #22A65E
tetradic
#5E22A6 #A62228 #6AA622 #22A6A0
square
#5E22A6 #A62228 #6AA622 #22A6A0
split-complementary
#5E22A6 #A6A022 #28A622
monochromatic
#240D40 #411873 #5E22A6 #7B30D5 #9C63DF

Accessibility & contrast

On white

9.31
#5E22A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5E22A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E22A6
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E22A6#FFFFFF#000000##FFFFFF
##5E22A61.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#4B4764
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e22a6;
/* rgb */ color: rgb(94, 34, 166);
/* oklch */ color: oklch(42.1% 0.193 297.9);
Tailwind
colors: {
  custom: {
    50: '#9365c1',
    500: '#5e22a6',
    950: '#000000',
  },
}
SCSS
$custom: #5e22a6;
$custom-light: #9365c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e22a6",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 166
  },
  "hsl": {
    "h": 267.273,
    "s": 66,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42142,
    "c": 0.19326,
    "h": 297.9
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#5E22A6
secondary
#96C45F
accent
#E93F9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E22A6

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

Preview Lab → · Contrast checker → · Palette generator →

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