#5F3AAA#5F3AAA

#5F3AAA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.6% C 0.170 H 293.7°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5F3AAA
RGBrgb(95, 58, 170)
HSLhsl(260, 49%, 45%)
HSVhsv(260, 66%, 67%)
CMYKcmyk(44.1%, 65.9%, 0%, 33.3%)
CIE-LABlab(34.72, 42.15, -54.49)
CIE-LCHlch(34.72, 68.89, 307.72°)
OKLaboklab(45.55% 0.0685 -0.1557)
OKLCHoklch(45.55% 0.17 293.7)
XYZxyz(13.4861, 8.3609, 38.9257)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3AAA #85AA3A
analogous
#3A4DAA #5F3AAA #973AAA
triadic
#5F3AAA #AA5F3A #3AAA5F
tetradic
#5F3AAA #AA3A4D #85AA3A #3AAA97
square
#5F3AAA #AA3A4D #85AA3A #3AAA97
split-complementary
#5F3AAA #AA973A #4DAA3A
monochromatic
#2C1B4F #452A7C #5F3AAA #7E5AC7 #A288D6

Accessibility & contrast

On white

7.86
#5F3AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5F3AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3AAA
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3AAA#FFFFFF#000000##FFFFFF
##5F3AAA1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#4A546D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f3aaa;
/* rgb */ color: rgb(95, 58, 170);
/* oklch */ color: oklch(45.6% 0.170 293.7);
Tailwind
colors: {
  custom: {
    50: '#9272c4',
    500: '#5f3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5f3aaa;
$custom-light: #9272c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3aaa",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 259.821,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45552,
    "c": 0.1701,
    "h": 293.7
  },
  "luminance": 0.08361
}

Semantic roles & 50–950 ramp

primary
#5F3AAA
secondary
#ABC17F
accent
#D94FAB
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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