#5F3ABA#5F3ABA

#5F3ABA is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.9% C 0.189 H 290.4°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#5F3ABA
RGBrgb(95, 58, 186)
HSLhsl(257, 52%, 48%)
HSVhsv(257, 69%, 73%)
CMYKcmyk(48.9%, 68.8%, 0%, 27.1%)
CIE-LABlab(35.99, 46.66, -61.92)
CIE-LCHlch(35.99, 77.53, 307.00°)
OKLaboklab(46.86% 0.0662 -0.1776)
OKLCHoklch(46.86% 0.189 290.4)
XYZxyz(15.0928, 9.0036, 47.3875)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3ABA #95BA3A
analogous
#3A55BA #5F3ABA #9F3ABA
triadic
#5F3ABA #BA5F3A #3ABA5F
tetradic
#5F3ABA #BA3A55 #95BA3A #3ABA9F
square
#5F3ABA #BA3A55 #95BA3A #3ABA9F
split-complementary
#5F3ABA #BA9F3A #55BA3A
monochromatic
#2F1D5D #472B8B #5F3ABA #8263CE #A792DD

Accessibility & contrast

On white

7.50
#5F3ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5F3ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3ABA
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3ABA#FFFFFF#000000##FFFFFF
##5F3ABA1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#415A75
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3aba;
/* rgb */ color: rgb(95, 58, 186);
/* oklch */ color: oklch(46.9% 0.189 290.4);
Tailwind
colors: {
  custom: {
    50: '#9473d0',
    500: '#5f3aba',
    950: '#000000',
  },
}
SCSS
$custom: #5f3aba;
$custom-light: #9473d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3aba",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 186
  },
  "hsl": {
    "h": 257.344,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46859,
    "c": 0.18949,
    "h": 290.4
  },
  "luminance": 0.09004
}

Semantic roles & 50–950 ramp

primary
#5F3ABA
secondary
#B5C888
accent
#DC4CB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F3ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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