#5F32A3#5F32A3

#5F32A3 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.9% C 0.172 H 296.9°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#5F32A3
RGBrgb(95, 50, 163)
HSLhsl(264, 53%, 42%)
HSVhsv(264, 69%, 64%)
CMYKcmyk(41.7%, 69.3%, 0%, 36.1%)
CIE-LABlab(32.61, 44.54, -53.72)
CIE-LCHlch(32.61, 69.79, 309.66°)
OKLaboklab(43.86% 0.078 -0.1534)
OKLCHoklch(43.86% 0.172 296.9)
XYZxyz(12.4691, 7.3582, 35.4066)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32A3 #76A332
analogous
#323DA3 #5F32A3 #9832A3
triadic
#5F32A3 #A35F32 #32A35F
tetradic
#5F32A3 #A3323D #76A332 #32A398
square
#5F32A3 #A3323D #76A332 #32A398
split-complementary
#5F32A3 #A39832 #3DA332
monochromatic
#281545 #442474 #5F32A3 #7C4BC8 #9E79D6

Accessibility & contrast

On white

8.50
#5F32A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5F32A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32A3
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32A3#FFFFFF#000000##FFFFFF
##5F32A31.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#004BA1
Tritanopia (blue-blind)
#4E4D66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f32a3;
/* rgb */ color: rgb(95, 50, 163);
/* oklch */ color: oklch(43.9% 0.172 296.9);
Tailwind
colors: {
  custom: {
    50: '#926dbf',
    500: '#5f32a3',
    950: '#000000',
  },
}
SCSS
$custom: #5f32a3;
$custom-light: #926dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32a3",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 163
  },
  "hsl": {
    "h": 263.894,
    "s": 53.052,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43863,
    "c": 0.17212,
    "h": 296.9
  },
  "luminance": 0.07358
}

Semantic roles & 50–950 ramp

primary
#5F32A3
secondary
#A0BF72
accent
#DC4BA3
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F32A3

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

Preview Lab → · Contrast checker → · Palette generator →

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