#5F22D3#5F22D3

#5F22D3 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.6% C 0.240 H 288.7°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#5F22D3
RGBrgb(95, 34, 211)
HSLhsl(261, 72%, 48%)
HSVhsv(261, 84%, 83%)
CMYKcmyk(55%, 83.9%, 0%, 17.3%)
CIE-LABlab(34.56, 64.04, -78.88)
CIE-LCHlch(34.56, 101.61, 309.07°)
OKLaboklab(46.55% 0.0767 -0.227)
OKLCHoklch(46.55% 0.24 288.7)
XYZxyz(17.0457, 8.2792, 62.3153)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F22D3 #96D322
analogous
#223DD3 #5F22D3 #B722D3
triadic
#5F22D3 #D35F22 #22D35F
tetradic
#5F22D3 #D3223D #96D322 #22D3B7
square
#5F22D3 #D3223D #96D322 #22D3B7
split-complementary
#5F22D3 #D3B722 #3DD322
monochromatic
#30116A #471A9E #5F22D3 #824FE3 #A884EB

Accessibility & contrast

On white

7.91
#5F22D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5F22D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F22D3
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F22D3#FFFFFF#000000##FFFFFF
##5F22D31.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D8
Deuteranopia (green-blind)
#004DD0
Tritanopia (blue-blind)
#2D5A7E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f22d3;
/* rgb */ color: rgb(95, 34, 211);
/* oklch */ color: oklch(46.6% 0.240 288.7);
Tailwind
colors: {
  custom: {
    50: '#9a68e2',
    500: '#5f22d3',
    950: '#000000',
  },
}
SCSS
$custom: #5f22d3;
$custom-light: #9a68e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f22d3",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 211
  },
  "hsl": {
    "h": 260.678,
    "s": 72.245,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46551,
    "c": 0.23961,
    "h": 288.7
  },
  "luminance": 0.0828
}

Semantic roles & 50–950 ramp

primary
#5F22D3
secondary
#B6D47D
accent
#EF39B0
background
#FAF6FE
surface
#F4EBFC
border
#CEC6D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5F22D3

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

Preview Lab → · Contrast checker → · Palette generator →

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