#5F32B7#5F32B7

#5F32B7 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.195 H 292.3°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#5F32B7
RGBrgb(95, 50, 183)
HSLhsl(260, 57%, 46%)
HSVhsv(260, 73%, 72%)
CMYKcmyk(48.1%, 72.7%, 0%, 28.2%)
CIE-LABlab(34.26, 49.95, -62.99)
CIE-LCHlch(34.26, 80.39, 308.42°)
OKLaboklab(45.55% 0.0741 -0.1806)
OKLCHoklch(45.55% 0.195 292.3)
XYZxyz(14.4048, 8.1325, 45.6013)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32B7 #8AB732
analogous
#3247B7 #5F32B7 #A132B7
triadic
#5F32B7 #B75F32 #32B75F
tetradic
#5F32B7 #B73247 #8AB732 #32B7A1
square
#5F32B7 #B73247 #8AB732 #32B7A1
split-complementary
#5F32B7 #B7A132 #47B732
monochromatic
#2D1857 #462587 #5F32B7 #7F56D1 #A386DE

Accessibility & contrast

On white

8.00
#5F32B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5F32B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32B7
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32B7#FFFFFF#000000##FFFFFF
##5F32B71.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#435571
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f32b7;
/* rgb */ color: rgb(95, 50, 183);
/* oklch */ color: oklch(45.5% 0.195 292.3);
Tailwind
colors: {
  custom: {
    50: '#956ece',
    500: '#5f32b7',
    950: '#000000',
  },
}
SCSS
$custom: #5f32b7;
$custom-light: #956ece;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32b7",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 183
  },
  "hsl": {
    "h": 260.301,
    "s": 57.082,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45547,
    "c": 0.19526,
    "h": 292.3
  },
  "luminance": 0.08133
}

Semantic roles & 50–950 ramp

primary
#5F32B7
secondary
#AEC77D
accent
#E047AD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F32B7

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

Preview Lab → · Contrast checker → · Palette generator →

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