#5F32BA#5F32BA

#5F32BA is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.199 H 291.7°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5F32BA
RGBrgb(95, 50, 186)
HSLhsl(260, 58%, 46%)
HSVhsv(260, 73%, 73%)
CMYKcmyk(48.9%, 73.1%, 0%, 27.1%)
CIE-LABlab(34.52, 50.77, -64.34)
CIE-LCHlch(34.52, 81.96, 308.28°)
OKLaboklab(45.81% 0.0735 -0.1846)
OKLCHoklch(45.81% 0.199 291.7)
XYZxyz(14.7203, 8.2587, 47.2633)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32BA #8DBA32
analogous
#3249BA #5F32BA #A332BA
triadic
#5F32BA #BA5F32 #32BA5F
tetradic
#5F32BA #BA3249 #8DBA32 #32BAA3
square
#5F32BA #BA3249 #8DBA32 #32BAA3
split-complementary
#5F32BA #BAA332 #49BA32
monochromatic
#2E185A #46258A #5F32BA #8057D2 #A488DF

Accessibility & contrast

On white

7.92
#5F32BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5F32BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32BA
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32BA#FFFFFF#000000##FFFFFF
##5F32BA1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#415673
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f32ba;
/* rgb */ color: rgb(95, 50, 186);
/* oklch */ color: oklch(45.8% 0.199 291.7);
Tailwind
colors: {
  custom: {
    50: '#956ed0',
    500: '#5f32ba',
    950: '#000000',
  },
}
SCSS
$custom: #5f32ba;
$custom-light: #956ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32ba",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 186
  },
  "hsl": {
    "h": 259.853,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4581,
    "c": 0.19869,
    "h": 291.7
  },
  "luminance": 0.08259
}

Semantic roles & 50–950 ramp

primary
#5F32BA
secondary
#B0C97F
accent
#E147AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F32BA

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

Preview Lab → · Contrast checker → · Palette generator →

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