#5E22A7#5E22A7

#5E22A7 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.194 H 297.7°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5E22A7
RGBrgb(94, 34, 167)
HSLhsl(267, 66%, 39%)
HSVhsv(267, 80%, 65%)
CMYKcmyk(43.7%, 79.6%, 0%, 34.5%)
CIE-LABlab(30.19, 52.86, -60.09)
CIE-LCHlch(30.19, 80.03, 311.34°)
OKLaboklab(42.23% 0.0903 -0.1721)
OKLCHoklch(42.23% 0.194 297.7)
XYZxyz(12.1613, 6.3135, 37.1296)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E22A7 #6BA722
analogous
#2228A7 #5E22A7 #A122A7
triadic
#5E22A7 #A75E22 #22A75E
tetradic
#5E22A7 #A72228 #6BA722 #22A7A1
square
#5E22A7 #A72228 #6BA722 #22A7A1
split-complementary
#5E22A7 #A7A122 #28A722
monochromatic
#250D41 #411874 #5E22A7 #7B31D5 #9C64DF

Accessibility & contrast

On white

9.28
#5E22A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E22A7
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E22A7#FFFFFF#000000##FFFFFF
##5E22A71.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#4B4765
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e22a7;
/* rgb */ color: rgb(94, 34, 167);
/* oklch */ color: oklch(42.2% 0.194 297.7);
Tailwind
colors: {
  custom: {
    50: '#9365c2',
    500: '#5e22a7',
    950: '#000000',
  },
}
SCSS
$custom: #5e22a7;
$custom-light: #9365c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e22a7",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 167
  },
  "hsl": {
    "h": 267.068,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42233,
    "c": 0.19431,
    "h": 297.7
  },
  "luminance": 0.06314
}

Semantic roles & 50–950 ramp

primary
#5E22A7
secondary
#97C560
accent
#E93F9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E22A7

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

Preview Lab → · Contrast checker → · Palette generator →

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