#5F32AB#5F32AB

#5F32AB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.5% C 0.181 H 295.0°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#5F32AB
RGBrgb(95, 50, 171)
HSLhsl(262, 55%, 43%)
HSVhsv(262, 71%, 67%)
CMYKcmyk(44.4%, 70.8%, 0%, 32.9%)
CIE-LABlab(33.25, 46.69, -57.48)
CIE-LCHlch(33.25, 74.06, 309.09°)
OKLaboklab(44.52% 0.0766 -0.1645)
OKLCHoklch(44.52% 0.181 295)
XYZxyz(13.2086, 7.6540, 39.3016)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32AB #7EAB32
analogous
#3241AB #5F32AB #9B32AB
triadic
#5F32AB #AB5F32 #32AB5F
tetradic
#5F32AB #AB3241 #7EAB32 #32AB9B
square
#5F32AB #AB3241 #7EAB32 #32AB9B
split-complementary
#5F32AB #AB9B32 #41AB32
monochromatic
#2A164C #45247C #5F32AB #7D4FCB #A07ED9

Accessibility & contrast

On white

8.30
#5F32AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5F32AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32AB
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32AB#FFFFFF#000000##FFFFFF
##5F32AB1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#4A506B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f32ab;
/* rgb */ color: rgb(95, 50, 171);
/* oklch */ color: oklch(44.5% 0.181 295.0);
Tailwind
colors: {
  custom: {
    50: '#936ec5',
    500: '#5f32ab',
    950: '#000000',
  },
}
SCSS
$custom: #5f32ab;
$custom-light: #936ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32ab",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 171
  },
  "hsl": {
    "h": 262.314,
    "s": 54.751,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44522,
    "c": 0.18145,
    "h": 295
  },
  "luminance": 0.07654
}

Semantic roles & 50–950 ramp

primary
#5F32AB
secondary
#A6C277
accent
#DE4AA7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F32AB

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

Preview Lab → · Contrast checker → · Palette generator →

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