#5F3AAF#5F3AAF

#5F3AAF is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.0% C 0.176 H 292.6°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5F3AAF
RGBrgb(95, 58, 175)
HSLhsl(259, 50%, 46%)
HSVhsv(259, 67%, 69%)
CMYKcmyk(45.7%, 66.9%, 0%, 31.4%)
CIE-LABlab(35.11, 43.55, -56.85)
CIE-LCHlch(35.11, 71.61, 307.46°)
OKLaboklab(45.95% 0.0678 -0.1626)
OKLCHoklch(45.95% 0.176 292.6)
XYZxyz(13.9681, 8.5537, 41.4642)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3AAF #8AAF3A
analogous
#3A4FAF #5F3AAF #993AAF
triadic
#5F3AAF #AF5F3A #3AAF5F
tetradic
#5F3AAF #AF3A4F #8AAF3A #3AAF99
square
#5F3AAF #AF3A4F #8AAF3A #3AAF99
split-complementary
#5F3AAF #AF993A #4FAF3A
monochromatic
#2D1C53 #462B81 #5F3AAF #7F5DC9 #A38BD9

Accessibility & contrast

On white

7.75
#5F3AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5F3AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3AAF
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3AAF#FFFFFF#000000##FFFFFF
##5F3AAF1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#47566F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f3aaf;
/* rgb */ color: rgb(95, 58, 175);
/* oklch */ color: oklch(46.0% 0.176 292.6);
Tailwind
colors: {
  custom: {
    50: '#9373c8',
    500: '#5f3aaf',
    950: '#000000',
  },
}
SCSS
$custom: #5f3aaf;
$custom-light: #9373c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3aaf",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 258.974,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45952,
    "c": 0.17621,
    "h": 292.6
  },
  "luminance": 0.08554
}

Semantic roles & 50–950 ramp

primary
#5F3AAF
secondary
#AEC382
accent
#DA4EAE
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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