#5F3DBF#5F3DBF

#5F3DBF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.7% C 0.192 H 289.0°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5F3DBF
RGBrgb(95, 61, 191)
HSLhsl(256, 52%, 49%)
HSVhsv(256, 68%, 75%)
CMYKcmyk(50.3%, 68.1%, 0%, 25.1%)
CIE-LABlab(36.99, 46.46, -63.24)
CIE-LCHlch(36.99, 78.47, 306.31°)
OKLaboklab(47.7% 0.0625 -0.1814)
OKLCHoklch(47.7% 0.192 289)
XYZxyz(15.7893, 9.5313, 50.2879)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DBF #9DBF3D
analogous
#3D5CBF #5F3DBF #A03DBF
triadic
#5F3DBF #BF5F3D #3DBF5F
tetradic
#5F3DBF #BF3D5C #9DBF3D #3DBFA0
square
#5F3DBF #BF3D5C #9DBF3D #3DBFA0
split-complementary
#5F3DBF #BFA03D #5CBF3D
monochromatic
#311F62 #482E91 #5F3DBF #846ACF #AB98DE

Accessibility & contrast

On white

7.23
#5F3DBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5F3DBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3DBF
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DBF#FFFFFF#000000##FFFFFF
##5F3DBF1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#3D5E79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3dbf;
/* rgb */ color: rgb(95, 61, 191);
/* oklch */ color: oklch(47.7% 0.192 289.0);
Tailwind
colors: {
  custom: {
    50: '#9575d3',
    500: '#5f3dbf',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dbf;
$custom-light: #9575d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dbf",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 191
  },
  "hsl": {
    "h": 255.692,
    "s": 51.587,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47699,
    "c": 0.19189,
    "h": 289
  },
  "luminance": 0.09532
}

Semantic roles & 50–950 ramp

primary
#5F3DBF
secondary
#BACA8E
accent
#DB4DB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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