#5E22A5#5E22A5

#5E22A5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.1% C 0.192 H 298.2°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5E22A5
RGBrgb(94, 34, 165)
HSLhsl(267, 66%, 39%)
HSVhsv(267, 79%, 65%)
CMYKcmyk(43%, 79.4%, 0%, 35.3%)
CIE-LABlab(30.01, 52.36, -59.18)
CIE-LCHlch(30.01, 79.01, 311.50°)
OKLaboklab(42.05% 0.0909 -0.1694)
OKLCHoklch(42.05% 0.192 298.2)
XYZxyz(11.9779, 6.2401, 36.1634)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E22A5 #69A522
analogous
#2228A5 #5E22A5 #A022A5
triadic
#5E22A5 #A55E22 #22A55E
tetradic
#5E22A5 #A52228 #69A522 #22A5A0
square
#5E22A5 #A52228 #69A522 #22A5A0
split-complementary
#5E22A5 #A5A022 #28A522
monochromatic
#240D40 #411872 #5E22A5 #7B30D4 #9B63DF

Accessibility & contrast

On white

9.34
#5E22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5E22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E22A5
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E22A5#FFFFFF#000000##FFFFFF
##5E22A51.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#4C4663
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e22a5;
/* rgb */ color: rgb(94, 34, 165);
/* oklch */ color: oklch(42.1% 0.192 298.2);
Tailwind
colors: {
  custom: {
    50: '#9365c1',
    500: '#5e22a5',
    950: '#000000',
  },
}
SCSS
$custom: #5e22a5;
$custom-light: #9365c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e22a5",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 267.481,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42052,
    "c": 0.19222,
    "h": 298.2
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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