#5F3AA1#5F3AA1

#5F3AA1 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.9% C 0.159 H 295.9°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5F3AA1
RGBrgb(95, 58, 161)
HSLhsl(262, 47%, 43%)
HSVhsv(262, 64%, 63%)
CMYKcmyk(41%, 64%, 0%, 36.9%)
CIE-LABlab(34.05, 39.64, -50.18)
CIE-LCHlch(34.05, 63.95, 308.31°)
OKLaboklab(44.85% 0.0694 -0.143)
OKLCHoklch(44.85% 0.159 295.9)
XYZxyz(12.6637, 8.0320, 34.5944)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3AA1 #7CA13A
analogous
#3A49A1 #5F3AA1 #923AA1
triadic
#5F3AA1 #A15F3A #3AA15F
tetradic
#5F3AA1 #A13A49 #7CA13A #3AA192
square
#5F3AA1 #A13A49 #7CA13A #3AA192
split-complementary
#5F3AA1 #A1923A #49A13A
monochromatic
#2A1A47 #442A74 #5F3AA1 #7D56C2 #A083D2

Accessibility & contrast

On white

8.06
#5F3AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5F3AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3AA1
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3AA1#FFFFFF#000000##FFFFFF
##5F3AA11.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#4E5168
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f3aa1;
/* rgb */ color: rgb(95, 58, 161);
/* oklch */ color: oklch(44.9% 0.159 295.9);
Tailwind
colors: {
  custom: {
    50: '#9172bd',
    500: '#5f3aa1',
    950: '#000000',
  },
}
SCSS
$custom: #5f3aa1;
$custom-light: #9172bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3aa1",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 161
  },
  "hsl": {
    "h": 261.553,
    "s": 47.032,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44852,
    "c": 0.15896,
    "h": 295.9
  },
  "luminance": 0.08032
}

Semantic roles & 50–950 ramp

primary
#5F3AA1
secondary
#A5BC7B
accent
#D751A7
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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