#5F22AC#5F22AC

#5F22AC is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.200 H 296.9°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5F22AC
RGBrgb(95, 34, 172)
HSLhsl(267, 67%, 40%)
HSVhsv(267, 80%, 67%)
CMYKcmyk(44.8%, 80.2%, 0%, 32.5%)
CIE-LABlab(30.77, 54.25, -62.14)
CIE-LCHlch(30.77, 82.49, 311.13°)
OKLaboklab(42.8% 0.0902 -0.178)
OKLCHoklch(42.8% 0.2 296.9)
XYZxyz(12.7358, 6.5552, 39.6160)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F22AC #6FAC22
analogous
#222AAC #5F22AC #A422AC
triadic
#5F22AC #AC5F22 #22AC5F
tetradic
#5F22AC #AC222A #6FAC22 #22ACA4
square
#5F22AC #AC222A #6FAC22 #22ACA4
split-complementary
#5F22AC #ACA422 #2AAC22
monochromatic
#270E46 #431879 #5F22AC #7C34D7 #9D67E1

Accessibility & contrast

On white

9.09
#5F22AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5F22AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F22AC
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F22AC#FFFFFF#000000##FFFFFF
##5F22AC1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#4A4967
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f22ac;
/* rgb */ color: rgb(95, 34, 172);
/* oklch */ color: oklch(42.8% 0.200 296.9);
Tailwind
colors: {
  custom: {
    50: '#9465c6',
    500: '#5f22ac',
    950: '#000000',
  },
}
SCSS
$custom: #5f22ac;
$custom-light: #9465c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f22ac",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 172
  },
  "hsl": {
    "h": 266.522,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42804,
    "c": 0.1996,
    "h": 296.9
  },
  "luminance": 0.06556
}

Semantic roles & 50–950 ramp

primary
#5F22AC
secondary
#9BC763
accent
#EA3E9E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F22AC

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

Preview Lab → · Contrast checker → · Palette generator →

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