#5F32B2#5F32B2

#5F32B2 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.190 H 293.4°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5F32B2
RGBrgb(95, 50, 178)
HSLhsl(261, 56%, 45%)
HSVhsv(261, 72%, 70%)
CMYKcmyk(46.6%, 71.9%, 0%, 30.2%)
CIE-LABlab(33.83, 48.59, -60.71)
CIE-LCHlch(33.83, 77.76, 308.67°)
OKLaboklab(45.12% 0.0752 -0.174)
OKLCHoklch(45.12% 0.19 293.4)
XYZxyz(13.8936, 7.9280, 42.9091)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32B2 #85B232
analogous
#3245B2 #5F32B2 #9F32B2
triadic
#5F32B2 #B25F32 #32B25F
tetradic
#5F32B2 #B23245 #85B232 #32B29F
square
#5F32B2 #B23245 #85B232 #32B29F
split-complementary
#5F32B2 #B29F32 #45B232
monochromatic
#2C1752 #462582 #5F32B2 #7E53CF #A282DC

Accessibility & contrast

On white

8.12
#5F32B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5F32B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32B2
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32B2#FFFFFF#000000##FFFFFF
##5F32B21.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#46536F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f32b2;
/* rgb */ color: rgb(95, 50, 178);
/* oklch */ color: oklch(45.1% 0.190 293.4);
Tailwind
colors: {
  custom: {
    50: '#946eca',
    500: '#5f32b2',
    950: '#000000',
  },
}
SCSS
$custom: #5f32b2;
$custom-light: #946eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32b2",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 261.094,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45115,
    "c": 0.18953,
    "h": 293.4
  },
  "luminance": 0.07928
}

Semantic roles & 50–950 ramp

primary
#5F32B2
secondary
#ABC57B
accent
#DF48AA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F32B2

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

Preview Lab → · Contrast checker → · Palette generator →

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