#5F32A2#5F32A2

#5F32A2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.171 H 297.2°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5F32A2
RGBrgb(95, 50, 162)
HSLhsl(264, 53%, 42%)
HSVhsv(264, 69%, 64%)
CMYKcmyk(41.4%, 69.1%, 0%, 36.5%)
CIE-LABlab(32.53, 44.27, -53.25)
CIE-LCHlch(32.53, 69.25, 309.74°)
OKLaboklab(43.78% 0.0781 -0.152)
OKLCHoklch(43.78% 0.171 297.2)
XYZxyz(12.3798, 7.3225, 34.9366)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32A2 #75A232
analogous
#323DA2 #5F32A2 #9732A2
triadic
#5F32A2 #A25F32 #32A25F
tetradic
#5F32A2 #A2323D #75A232 #32A297
square
#5F32A2 #A2323D #75A232 #32A297
split-complementary
#5F32A2 #A29732 #3DA232
monochromatic
#281544 #442473 #5F32A2 #7C4AC7 #9E79D6

Accessibility & contrast

On white

8.52
#5F32A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5F32A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32A2
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32A2#FFFFFF#000000##FFFFFF
##5F32A21.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#4E4D66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f32a2;
/* rgb */ color: rgb(95, 50, 162);
/* oklch */ color: oklch(43.8% 0.171 297.2);
Tailwind
colors: {
  custom: {
    50: '#926dbe',
    500: '#5f32a2',
    950: '#000000',
  },
}
SCSS
$custom: #5f32a2;
$custom-light: #926dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32a2",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 162
  },
  "hsl": {
    "h": 264.107,
    "s": 52.83,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43782,
    "c": 0.17094,
    "h": 297.2
  },
  "luminance": 0.07323
}

Semantic roles & 50–950 ramp

primary
#5F32A2
secondary
#9FBE72
accent
#DC4CA2
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F32A2

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

Preview Lab → · Contrast checker → · Palette generator →

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