#5F3AAE#5F3AAE

#5F3AAE is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.9% C 0.175 H 292.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5F3AAE
RGBrgb(95, 58, 174)
HSLhsl(259, 50%, 45%)
HSVhsv(259, 67%, 68%)
CMYKcmyk(45.4%, 66.7%, 0%, 31.8%)
CIE-LABlab(35.03, 43.27, -56.38)
CIE-LCHlch(35.03, 71.07, 307.51°)
OKLaboklab(45.87% 0.068 -0.1613)
OKLCHoklch(45.87% 0.175 292.8)
XYZxyz(13.8703, 8.5146, 40.9489)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3AAE #89AE3A
analogous
#3A4FAE #5F3AAE #993AAE
triadic
#5F3AAE #AE5F3A #3AAE5F
tetradic
#5F3AAE #AE3A4F #89AE3A #3AAE99
square
#5F3AAE #AE3A4F #89AE3A #3AAE99
split-complementary
#5F3AAE #AE993A #4FAE3A
monochromatic
#2D1B52 #462B80 #5F3AAE #7F5CC9 #A38AD8

Accessibility & contrast

On white

7.77
#5F3AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5F3AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3AAE
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3AAE#FFFFFF#000000##FFFFFF
##5F3AAE1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#48566F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f3aae;
/* rgb */ color: rgb(95, 58, 174);
/* oklch */ color: oklch(45.9% 0.175 292.8);
Tailwind
colors: {
  custom: {
    50: '#9373c7',
    500: '#5f3aae',
    950: '#000000',
  },
}
SCSS
$custom: #5f3aae;
$custom-light: #9373c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3aae",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 174
  },
  "hsl": {
    "h": 259.138,
    "s": 50,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45872,
    "c": 0.17499,
    "h": 292.8
  },
  "luminance": 0.08515
}

Semantic roles & 50–950 ramp

primary
#5F3AAE
secondary
#AEC281
accent
#DA4EAD
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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