#5F32B0#5F32B0

#5F32B0 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.187 H 293.8°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5F32B0
RGBrgb(95, 50, 176)
HSLhsl(261, 56%, 44%)
HSVhsv(261, 72%, 69%)
CMYKcmyk(46%, 71.6%, 0%, 31%)
CIE-LABlab(33.66, 48.05, -59.80)
CIE-LCHlch(33.66, 76.71, 308.78°)
OKLaboklab(44.94% 0.0756 -0.1713)
OKLCHoklch(44.94% 0.187 293.8)
XYZxyz(13.6942, 7.8483, 41.8592)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32B0 #83B032
analogous
#3244B0 #5F32B0 #9E32B0
triadic
#5F32B0 #B05F32 #32B05F
tetradic
#5F32B0 #B03244 #83B032 #32B09E
square
#5F32B0 #B03244 #83B032 #32B09E
split-complementary
#5F32B0 #B09E32 #44B032
monochromatic
#2C1751 #452480 #5F32B0 #7E51CE #A181DB

Accessibility & contrast

On white

8.17
#5F32B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5F32B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32B0
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32B0#FFFFFF#000000##FFFFFF
##5F32B01.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B4
Deuteranopia (green-blind)
#004DAE
Tritanopia (blue-blind)
#47526E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f32b0;
/* rgb */ color: rgb(95, 50, 176);
/* oklch */ color: oklch(44.9% 0.187 293.8);
Tailwind
colors: {
  custom: {
    50: '#946ec9',
    500: '#5f32b0',
    950: '#000000',
  },
}
SCSS
$custom: #5f32b0;
$custom-light: #946ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32b0",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 176
  },
  "hsl": {
    "h": 261.429,
    "s": 55.752,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44944,
    "c": 0.18723,
    "h": 293.8
  },
  "luminance": 0.07849
}

Semantic roles & 50–950 ramp

primary
#5F32B0
secondary
#AAC479
accent
#DF49A9
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F32B0

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

Preview Lab → · Contrast checker → · Palette generator →

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