#5F3ABB#5F3ABB

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

Color values

HEX#5F3ABB
RGBrgb(95, 58, 187)
HSLhsl(257, 53%, 48%)
HSVhsv(257, 69%, 73%)
CMYKcmyk(49.2%, 69%, 0%, 26.7%)
CIE-LABlab(36.07, 46.94, -62.38)
CIE-LCHlch(36.07, 78.07, 306.96°)
OKLaboklab(46.94% 0.066 -0.1789)
OKLCHoklch(46.94% 0.191 290.3)
XYZxyz(15.1994, 9.0463, 47.9493)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3ABB #96BB3A
analogous
#3A56BB #5F3ABB #9F3ABB
triadic
#5F3ABB #BB5F3A #3ABB5F
tetradic
#5F3ABB #BB3A56 #96BB3A #3ABB9F
square
#5F3ABB #BB3A56 #96BB3A #3ABB9F
split-complementary
#5F3ABB #BB9F3A #56BB3A
monochromatic
#301D5E #472C8C #5F3ABB #8263CF #A892DD

Accessibility & contrast

On white

7.47
#5F3ABB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5F3ABB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3ABB
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3ABB#FFFFFF#000000##FFFFFF
##5F3ABB1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#405B76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3abb;
/* rgb */ color: rgb(95, 58, 187);
/* oklch */ color: oklch(46.9% 0.191 290.3);
Tailwind
colors: {
  custom: {
    50: '#9573d0',
    500: '#5f3abb',
    950: '#000000',
  },
}
SCSS
$custom: #5f3abb;
$custom-light: #9573d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3abb",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 187
  },
  "hsl": {
    "h": 257.209,
    "s": 52.653,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46943,
    "c": 0.19069,
    "h": 290.3
  },
  "luminance": 0.09047
}

Semantic roles & 50–950 ramp

primary
#5F3ABB
secondary
#B6C888
accent
#DC4CB3
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F3ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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