#5D32B9#5D32B9

#5D32B9 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.198 H 291.0°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5D32B9
RGBrgb(93, 50, 185)
HSLhsl(259, 57%, 46%)
HSVhsv(259, 73%, 73%)
CMYKcmyk(49.7%, 73%, 0%, 27.5%)
CIE-LABlab(34.21, 50.18, -64.25)
CIE-LCHlch(34.21, 81.52, 307.99°)
OKLaboklab(45.52% 0.0708 -0.1844)
OKLCHoklch(45.52% 0.198 291)
XYZxyz(14.4093, 8.1106, 46.6958)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D32B9 #8EB932
analogous
#324AB9 #5D32B9 #A032B9
triadic
#5D32B9 #B95D32 #32B95D
tetradic
#5D32B9 #B9324A #8EB932 #32B9A0
square
#5D32B9 #B9324A #8EB932 #32B9A0
split-complementary
#5D32B9 #B9A032 #4AB932
monochromatic
#2D1859 #452589 #5D32B9 #7E57D2 #A387DF

Accessibility & contrast

On white

8.01
#5D32B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5D32B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D32B9
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D32B9#FFFFFF#000000##FFFFFF
##5D32B91.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BD
Deuteranopia (green-blind)
#004DB6
Tritanopia (blue-blind)
#3E5673
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d32b9;
/* rgb */ color: rgb(93, 50, 185);
/* oklch */ color: oklch(45.5% 0.198 291.0);
Tailwind
colors: {
  custom: {
    50: '#946ecf',
    500: '#5d32b9',
    950: '#000000',
  },
}
SCSS
$custom: #5d32b9;
$custom-light: #946ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d32b9",
  "rgb": {
    "r": 93,
    "g": 50,
    "b": 185
  },
  "hsl": {
    "h": 259.111,
    "s": 57.447,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45518,
    "c": 0.19753,
    "h": 291
  },
  "luminance": 0.08111
}

Semantic roles & 50–950 ramp

primary
#5D32B9
secondary
#B1C87F
accent
#E147B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D32B9

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

Preview Lab → · Contrast checker → · Palette generator →

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