#5F3ACA#5F3ACA

#5F3ACA is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.2% C 0.208 H 287.6°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5F3ACA
RGBrgb(95, 58, 202)
HSLhsl(255, 58%, 51%)
HSVhsv(255, 71%, 79%)
CMYKcmyk(53%, 71.3%, 0%, 20.8%)
CIE-LABlab(37.34, 51.19, -69.08)
CIE-LCHlch(37.34, 85.98, 306.54°)
OKLaboklab(48.24% 0.0632 -0.1986)
OKLCHoklch(48.24% 0.208 287.6)
XYZxyz(16.8899, 9.7224, 56.8523)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3ACA #A5CA3A
analogous
#3A5DCA #5F3ACA #A73ACA
triadic
#5F3ACA #CA5F3A #3ACA5F
tetradic
#5F3ACA #CA3A5D #A5CA3A #3ACAA7
square
#5F3ACA #CA3A5D #A5CA3A #3ACAA7
split-complementary
#5F3ACA #CAA73A #5DCA3A
monochromatic
#321D6C #482A9D #5F3ACA #866AD7 #AD9AE4

Accessibility & contrast

On white

7.13
#5F3ACA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5F3ACA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3ACA
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3ACA#FFFFFF#000000##FFFFFF
##5F3ACA1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#34607E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3aca;
/* rgb */ color: rgb(95, 58, 202);
/* oklch */ color: oklch(48.2% 0.208 287.6);
Tailwind
colors: {
  custom: {
    50: '#9773db',
    500: '#5f3aca',
    950: '#000000',
  },
}
SCSS
$custom: #5f3aca;
$custom-light: #9773db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3aca",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 202
  },
  "hsl": {
    "h": 255.417,
    "s": 57.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48236,
    "c": 0.20839,
    "h": 287.6
  },
  "luminance": 0.09723
}

Semantic roles & 50–950 ramp

primary
#5F3ACA
secondary
#BFD090
accent
#E147B9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F3ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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