#5F22A0#5F22A0

#5F22A0 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.187 H 300.1°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5F22A0
RGBrgb(95, 34, 160)
HSLhsl(269, 65%, 38%)
HSVhsv(269, 79%, 63%)
CMYKcmyk(40.6%, 78.8%, 0%, 37.3%)
CIE-LABlab(29.70, 51.28, -56.65)
CIE-LCHlch(29.70, 76.41, 312.15°)
OKLaboklab(41.73% 0.0938 -0.1619)
OKLCHoklch(41.73% 0.187 300.1)
XYZxyz(11.6349, 6.1149, 33.8182)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F22A0 #63A022
analogous
#2224A0 #5F22A0 #9E22A0
triadic
#5F22A0 #A05F22 #22A05F
tetradic
#5F22A0 #A02224 #63A022 #22A09E
square
#5F22A0 #A02224 #63A022 #22A09E
split-complementary
#5F22A0 #A09E22 #24A022
monochromatic
#230D3B #41176E #5F22A0 #7D2DD2 #9C5FDD

Accessibility & contrast

On white

9.45
#5F22A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5F22A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F22A0
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F22A0#FFFFFF#000000##FFFFFF
##5F22A01.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00459E
Tritanopia (blue-blind)
#504461
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f22a0;
/* rgb */ color: rgb(95, 34, 160);
/* oklch */ color: oklch(41.7% 0.187 300.1);
Tailwind
colors: {
  custom: {
    50: '#9365bd',
    500: '#5f22a0',
    950: '#000000',
  },
}
SCSS
$custom: #5f22a0;
$custom-light: #9365bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f22a0",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 269.048,
    "s": 64.948,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41729,
    "c": 0.18715,
    "h": 300.1
  },
  "luminance": 0.06115
}

Semantic roles & 50–950 ramp

primary
#5F22A0
secondary
#91C25C
accent
#E84097
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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