#5F32B5#5F32B5

#5F32B5 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.193 H 292.7°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#5F32B5
RGBrgb(95, 50, 181)
HSLhsl(261, 57%, 45%)
HSVhsv(261, 72%, 71%)
CMYKcmyk(47.5%, 72.4%, 0%, 29%)
CIE-LABlab(34.09, 49.41, -62.08)
CIE-LCHlch(34.09, 79.34, 308.52°)
OKLaboklab(45.37% 0.0746 -0.178)
OKLCHoklch(45.37% 0.193 292.7)
XYZxyz(14.1981, 8.0498, 44.5128)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32B5 #88B532
analogous
#3246B5 #5F32B5 #A132B5
triadic
#5F32B5 #B55F32 #32B55F
tetradic
#5F32B5 #B53246 #88B532 #32B5A1
square
#5F32B5 #B53246 #88B532 #32B5A1
split-complementary
#5F32B5 #B5A132 #46B532
monochromatic
#2D1855 #462585 #5F32B5 #7F54D0 #A384DD

Accessibility & contrast

On white

8.05
#5F32B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5F32B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32B5
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32B5#FFFFFF#000000##FFFFFF
##5F32B51.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#445470
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f32b5;
/* rgb */ color: rgb(95, 50, 181);
/* oklch */ color: oklch(45.4% 0.193 292.7);
Tailwind
colors: {
  custom: {
    50: '#946ecc',
    500: '#5f32b5',
    950: '#000000',
  },
}
SCSS
$custom: #5f32b5;
$custom-light: #946ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32b5",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 181
  },
  "hsl": {
    "h": 260.611,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45373,
    "c": 0.19298,
    "h": 292.7
  },
  "luminance": 0.0805
}

Semantic roles & 50–950 ramp

primary
#5F32B5
secondary
#ADC77C
accent
#E048AC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F32B5

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

Preview Lab → · Contrast checker → · Palette generator →

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