#5F3FBE#5F3FBE

#5F3FBE is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.9% C 0.188 H 288.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5F3FBE
RGBrgb(95, 63, 190)
HSLhsl(255, 50%, 50%)
HSVhsv(255, 67%, 75%)
CMYKcmyk(50%, 66.8%, 0%, 25.5%)
CIE-LABlab(37.31, 45.08, -62.13)
CIE-LCHlch(37.31, 76.76, 305.96°)
OKLaboklab(47.9% 0.0607 -0.1782)
OKLCHoklch(47.9% 0.188 288.8)
XYZxyz(15.7884, 9.7049, 49.7465)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FBE #9EBE3F
analogous
#3F5FBE #5F3FBE #9F3FBE
triadic
#5F3FBE #BE5F3F #3FBE5F
tetradic
#5F3FBE #BE3F5F #9EBE3F #3FBE9F
square
#5F3FBE #BE3F5F #9EBE3F #3FBE9F
split-complementary
#5F3FBE #BE9F3F #5FBE3F
monochromatic
#312162 #483090 #5F3FBE #856CCE #AB9ADD

Accessibility & contrast

On white

7.14
#5F3FBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F3FBE
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FBE#FFFFFF#000000##FFFFFF
##5F3FBE1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC2
Deuteranopia (green-blind)
#0055BB
Tritanopia (blue-blind)
#3E5F79
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3fbe;
/* rgb */ color: rgb(95, 63, 190);
/* oklch */ color: oklch(47.9% 0.188 288.8);
Tailwind
colors: {
  custom: {
    50: '#9576d3',
    500: '#5f3fbe',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fbe;
$custom-light: #9576d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fbe",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 190
  },
  "hsl": {
    "h": 255.118,
    "s": 50.198,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47904,
    "c": 0.18825,
    "h": 288.8
  },
  "luminance": 0.09706
}

Semantic roles & 50–950 ramp

primary
#5F3FBE
secondary
#BBC98F
accent
#DA4EB7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F3FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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