#5F3CBF#5F3CBF

#5F3CBF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.193 H 289.2°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5F3CBF
RGBrgb(95, 60, 191)
HSLhsl(256, 52%, 49%)
HSVhsv(256, 69%, 75%)
CMYKcmyk(50.3%, 68.6%, 0%, 25.1%)
CIE-LABlab(36.79, 47.01, -63.56)
CIE-LCHlch(36.79, 79.05, 306.49°)
OKLaboklab(47.56% 0.0634 -0.1824)
OKLCHoklch(47.56% 0.193 289.2)
XYZxyz(15.7364, 9.4255, 50.2703)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CBF #9CBF3C
analogous
#3C5ABF #5F3CBF #A13CBF
triadic
#5F3CBF #BF5F3C #3CBF5F
tetradic
#5F3CBF #BF3C5A #9CBF3C #3CBFA1
square
#5F3CBF #BF3C5A #9CBF3C #3CBFA1
split-complementary
#5F3CBF #BFA13C #5ABF3C
monochromatic
#311F62 #482D90 #5F3CBF #8468D0 #AA97DE

Accessibility & contrast

On white

7.28
#5F3CBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5F3CBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CBF
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CBF#FFFFFF#000000##FFFFFF
##5F3CBF1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#3D5D79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3cbf;
/* rgb */ color: rgb(95, 60, 191);
/* oklch */ color: oklch(47.6% 0.193 289.2);
Tailwind
colors: {
  custom: {
    50: '#9574d3',
    500: '#5f3cbf',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cbf;
$custom-light: #9574d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cbf",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 191
  },
  "hsl": {
    "h": 256.031,
    "s": 52.191,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47559,
    "c": 0.19309,
    "h": 289.2
  },
  "luminance": 0.09426
}

Semantic roles & 50–950 ramp

primary
#5F3CBF
secondary
#BACA8D
accent
#DC4CB5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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