#5F3CBD#5F3CBD

#5F3CBD is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.4% C 0.191 H 289.5°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5F3CBD
RGBrgb(95, 60, 189)
HSLhsl(256, 52%, 49%)
HSVhsv(256, 68%, 74%)
CMYKcmyk(49.7%, 68.3%, 0%, 25.9%)
CIE-LABlab(36.63, 46.43, -62.65)
CIE-LCHlch(36.63, 77.98, 306.54°)
OKLaboklab(47.39% 0.0638 -0.1797)
OKLCHoklch(47.39% 0.191 289.5)
XYZxyz(15.5178, 9.3381, 49.1190)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CBD #9ABD3C
analogous
#3C5ABD #5F3CBD #A03CBD
triadic
#5F3CBD #BD5F3C #3CBD5F
tetradic
#5F3CBD #BD3C5A #9ABD3C #3CBDA0
square
#5F3CBD #BD3C5A #9ABD3C #3CBDA0
split-complementary
#5F3CBD #BDA03C #5ABD3C
monochromatic
#301F60 #482D8F #5F3CBD #8367CF #A996DE

Accessibility & contrast

On white

7.32
#5F3CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5F3CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CBD
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CBD#FFFFFF#000000##FFFFFF
##5F3CBD1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#3F5C78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f3cbd;
/* rgb */ color: rgb(95, 60, 189);
/* oklch */ color: oklch(47.4% 0.191 289.5);
Tailwind
colors: {
  custom: {
    50: '#9574d2',
    500: '#5f3cbd',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cbd;
$custom-light: #9574d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cbd",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 189
  },
  "hsl": {
    "h": 256.279,
    "s": 51.807,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4739,
    "c": 0.19069,
    "h": 289.5
  },
  "luminance": 0.09339
}

Semantic roles & 50–950 ramp

primary
#5F3CBD
secondary
#B8C98C
accent
#DB4DB5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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