#5F3CBE#5F3CBE

#5F3CBE is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.5% C 0.192 H 289.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5F3CBE
RGBrgb(95, 60, 190)
HSLhsl(256, 52%, 49%)
HSVhsv(256, 68%, 75%)
CMYKcmyk(50%, 68.4%, 0%, 25.5%)
CIE-LABlab(36.71, 46.72, -63.11)
CIE-LCHlch(36.71, 78.52, 306.51°)
OKLaboklab(47.47% 0.0636 -0.181)
OKLCHoklch(47.47% 0.192 289.4)
XYZxyz(15.6268, 9.3816, 49.6927)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CBE #9BBE3C
analogous
#3C5ABE #5F3CBE #A03CBE
triadic
#5F3CBE #BE5F3C #3CBE5F
tetradic
#5F3CBE #BE3C5A #9BBE3C #3CBEA0
square
#5F3CBE #BE3C5A #9BBE3C #3CBEA0
split-complementary
#5F3CBE #BEA03C #5ABE3C
monochromatic
#301F61 #482D8F #5F3CBE #8468CF #AA96DE

Accessibility & contrast

On white

7.30
#5F3CBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5F3CBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CBE
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CBE#FFFFFF#000000##FFFFFF
##5F3CBE1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C2
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#3E5D78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f3cbe;
/* rgb */ color: rgb(95, 60, 190);
/* oklch */ color: oklch(47.5% 0.192 289.4);
Tailwind
colors: {
  custom: {
    50: '#9574d3',
    500: '#5f3cbe',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cbe;
$custom-light: #9574d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cbe",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 190
  },
  "hsl": {
    "h": 256.154,
    "s": 52,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47474,
    "c": 0.19189,
    "h": 289.4
  },
  "luminance": 0.09382
}

Semantic roles & 50–950 ramp

primary
#5F3CBE
secondary
#B9CA8C
accent
#DB4CB5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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