#5F32B1#5F32B1

#5F32B1 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.188 H 293.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5F32B1
RGBrgb(95, 50, 177)
HSLhsl(261, 56%, 45%)
HSVhsv(261, 72%, 69%)
CMYKcmyk(46.3%, 71.8%, 0%, 30.6%)
CIE-LABlab(33.75, 48.32, -60.26)
CIE-LCHlch(33.75, 77.24, 308.73°)
OKLaboklab(45.03% 0.0754 -0.1726)
OKLCHoklch(45.03% 0.188 293.6)
XYZxyz(13.7936, 7.8880, 42.3822)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32B1 #84B132
analogous
#3245B1 #5F32B1 #9F32B1
triadic
#5F32B1 #B15F32 #32B15F
tetradic
#5F32B1 #B13245 #84B132 #32B19F
square
#5F32B1 #B13245 #84B132 #32B19F
split-complementary
#5F32B1 #B19F32 #45B132
monochromatic
#2C1752 #452581 #5F32B1 #7E52CE #A282DC

Accessibility & contrast

On white

8.15
#5F32B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5F32B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32B1
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32B1#FFFFFF#000000##FFFFFF
##5F32B11.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#47536E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f32b1;
/* rgb */ color: rgb(95, 50, 177);
/* oklch */ color: oklch(45.0% 0.188 293.6);
Tailwind
colors: {
  custom: {
    50: '#946ec9',
    500: '#5f32b1',
    950: '#000000',
  },
}
SCSS
$custom: #5f32b1;
$custom-light: #946ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32b1",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 177
  },
  "hsl": {
    "h": 261.26,
    "s": 55.947,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45029,
    "c": 0.18839,
    "h": 293.6
  },
  "luminance": 0.07888
}

Semantic roles & 50–950 ramp

primary
#5F32B1
secondary
#AAC57A
accent
#DF49AA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F32B1

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

Preview Lab → · Contrast checker → · Palette generator →

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