#5F3BD3#5F3BD3

#5F3BD3 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.2% C 0.218 H 286.1°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5F3BD3
RGBrgb(95, 59, 211)
HSLhsl(254, 63%, 53%)
HSVhsv(254, 72%, 83%)
CMYKcmyk(55%, 72%, 0%, 17.3%)
CIE-LABlab(38.31, 53.24, -72.71)
CIE-LCHlch(38.31, 90.11, 306.21°)
OKLaboklab(49.17% 0.0605 -0.2092)
OKLCHoklch(49.17% 0.218 286.1)
XYZxyz(18.0376, 10.2630, 62.6459)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BD3 #AFD33B
analogous
#3B63D3 #5F3BD3 #AB3BD3
triadic
#5F3BD3 #D35F3B #3BD35F
tetradic
#5F3BD3 #D33B63 #AFD33B #3BD3AB
square
#5F3BD3 #D33B63 #AFD33B #3BD3AB
split-complementary
#5F3BD3 #D3AB3B #63D33B
monochromatic
#311B79 #4626AB #5F3BD3 #886DDE #B19FE9

Accessibility & contrast

On white

6.88
#5F3BD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5F3BD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3BD3
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BD3#FFFFFF#000000##FFFFFF
##5F3BD31.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED7
Deuteranopia (green-blind)
#0056D0
Tritanopia (blue-blind)
#2B6483
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3bd3;
/* rgb */ color: rgb(95, 59, 211);
/* oklch */ color: oklch(49.2% 0.218 286.1);
Tailwind
colors: {
  custom: {
    50: '#9874e2',
    500: '#5f3bd3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bd3;
$custom-light: #9874e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bd3",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 211
  },
  "hsl": {
    "h": 254.211,
    "s": 63.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49166,
    "c": 0.21775,
    "h": 286.1
  },
  "luminance": 0.10264
}

Semantic roles & 50–950 ramp

primary
#5F3BD3
secondary
#C6D694
accent
#E641BF
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0815
muted
#7F7B84

Preview Lab

Preview with #5F3BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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