#5F3AA0#5F3AA0

#5F3AA0 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.8% C 0.158 H 296.1°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#5F3AA0
RGBrgb(95, 58, 160)
HSLhsl(262, 47%, 43%)
HSVhsv(262, 64%, 63%)
CMYKcmyk(40.6%, 63.8%, 0%, 37.3%)
CIE-LABlab(33.98, 39.37, -49.70)
CIE-LCHlch(33.98, 63.40, 308.39°)
OKLaboklab(44.78% 0.0694 -0.1416)
OKLCHoklch(44.78% 0.158 296.1)
XYZxyz(12.5759, 7.9968, 34.1319)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3AA0 #7BA03A
analogous
#3A48A0 #5F3AA0 #923AA0
triadic
#5F3AA0 #A05F3A #3AA05F
tetradic
#5F3AA0 #A03A48 #7BA03A #3AA092
square
#5F3AA0 #A03A48 #7BA03A #3AA092
split-complementary
#5F3AA0 #A0923A #48A03A
monochromatic
#2A1946 #442A73 #5F3AA0 #7D56C2 #9F83D2

Accessibility & contrast

On white

8.08
#5F3AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5F3AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3AA0
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3AA0#FFFFFF#000000##FFFFFF
##5F3AA01.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A3
Deuteranopia (green-blind)
#004E9E
Tritanopia (blue-blind)
#4F5167
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f3aa0;
/* rgb */ color: rgb(95, 58, 160);
/* oklch */ color: oklch(44.8% 0.158 296.1);
Tailwind
colors: {
  custom: {
    50: '#9172bd',
    500: '#5f3aa0',
    950: '#000000',
  },
}
SCSS
$custom: #5f3aa0;
$custom-light: #9172bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3aa0",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 160
  },
  "hsl": {
    "h": 261.765,
    "s": 46.789,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44776,
    "c": 0.15771,
    "h": 296.1
  },
  "luminance": 0.07997
}

Semantic roles & 50–950 ramp

primary
#5F3AA0
secondary
#A4BC7A
accent
#D651A6
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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