#5F22AE#5F22AE

#5F22AE is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 43.0% C 0.202 H 296.4°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5F22AE
RGBrgb(95, 34, 174)
HSLhsl(266, 67%, 41%)
HSVhsv(266, 80%, 68%)
CMYKcmyk(45.4%, 80.5%, 0%, 31.8%)
CIE-LABlab(30.96, 54.75, -63.04)
CIE-LCHlch(30.96, 83.50, 310.98°)
OKLaboklab(42.99% 0.0896 -0.1807)
OKLCHoklch(42.99% 0.202 296.4)
XYZxyz(12.9293, 6.6326, 40.6352)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F22AE #71AE22
analogous
#222BAE #5F22AE #A522AE
triadic
#5F22AE #AE5F22 #22AE5F
tetradic
#5F22AE #AE222B #71AE22 #22AEA5
square
#5F22AE #AE222B #71AE22 #22AEA5
split-complementary
#5F22AE #AEA522 #2BAE22
monochromatic
#270E48 #43187B #5F22AE #7C36D8 #9D69E2

Accessibility & contrast

On white

9.03
#5F22AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5F22AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F22AE
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F22AE#FFFFFF#000000##FFFFFF
##5F22AE1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#494A69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f22ae;
/* rgb */ color: rgb(95, 34, 174);
/* oklch */ color: oklch(43.0% 0.202 296.4);
Tailwind
colors: {
  custom: {
    50: '#9465c7',
    500: '#5f22ae',
    950: '#000000',
  },
}
SCSS
$custom: #5f22ae;
$custom-light: #9465c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f22ae",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 174
  },
  "hsl": {
    "h": 266.143,
    "s": 67.308,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42988,
    "c": 0.20167,
    "h": 296.4
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#5F22AE
secondary
#9CC764
accent
#EA3E9F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F22AE

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

Preview Lab → · Contrast checker → · Palette generator →

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