#5F32AF#5F32AF

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

Color values

HEX#5F32AF
RGBrgb(95, 50, 175)
HSLhsl(262, 56%, 44%)
HSVhsv(262, 71%, 69%)
CMYKcmyk(45.7%, 71.4%, 0%, 31.4%)
CIE-LABlab(33.58, 47.78, -59.34)
CIE-LCHlch(33.58, 76.18, 308.84°)
OKLaboklab(44.86% 0.0758 -0.1699)
OKLCHoklch(44.86% 0.186 294)
XYZxyz(13.5957, 7.8089, 41.3401)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32AF #82AF32
analogous
#3244AF #5F32AF #9E32AF
triadic
#5F32AF #AF5F32 #32AF5F
tetradic
#5F32AF #AF3244 #82AF32 #32AF9E
square
#5F32AF #AF3244 #82AF32 #32AF9E
split-complementary
#5F32AF #AF9E32 #44AF32
monochromatic
#2B1750 #45247F #5F32AF #7E51CD #A181DB

Accessibility & contrast

On white

8.20
#5F32AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5F32AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32AF
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32AF#FFFFFF#000000##FFFFFF
##5F32AF1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#48526D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f32af;
/* rgb */ color: rgb(95, 50, 175);
/* oklch */ color: oklch(44.9% 0.186 294.0);
Tailwind
colors: {
  custom: {
    50: '#946ec8',
    500: '#5f32af',
    950: '#000000',
  },
}
SCSS
$custom: #5f32af;
$custom-light: #946ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32af",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 175
  },
  "hsl": {
    "h": 261.6,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44859,
    "c": 0.18608,
    "h": 294
  },
  "luminance": 0.07809
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F32AF

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

Preview Lab → · Contrast checker → · Palette generator →

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