#5F3BB5#5F3BB5

#5F3BB5 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.6% C 0.182 H 291.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5F3BB5
RGBrgb(95, 59, 181)
HSLhsl(258, 51%, 47%)
HSVhsv(258, 67%, 71%)
CMYKcmyk(47.5%, 67.4%, 0%, 29%)
CIE-LABlab(35.78, 44.70, -59.31)
CIE-LCHlch(35.78, 74.27, 307.00°)
OKLaboklab(46.59% 0.066 -0.1699)
OKLCHoklch(46.59% 0.182 291.2)
XYZxyz(14.6214, 8.8965, 44.6539)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BB5 #91B53B
analogous
#3B54B5 #5F3BB5 #9C3BB5
triadic
#5F3BB5 #B55F3B #3BB55F
tetradic
#5F3BB5 #B53B54 #91B53B #3BB59C
square
#5F3BB5 #B53B54 #91B53B #3BB59C
split-complementary
#5F3BB5 #B59C3B #54B53B
monochromatic
#2F1D59 #472C87 #5F3BB5 #8162CC #A690DB

Accessibility & contrast

On white

7.56
#5F3BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5F3BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BB5
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BB5#FFFFFF#000000##FFFFFF
##5F3BB51.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#445973
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f3bb5;
/* rgb */ color: rgb(95, 59, 181);
/* oklch */ color: oklch(46.6% 0.182 291.2);
Tailwind
colors: {
  custom: {
    50: '#9473cc',
    500: '#5f3bb5',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bb5;
$custom-light: #9473cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bb5",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 181
  },
  "hsl": {
    "h": 257.705,
    "s": 50.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46585,
    "c": 0.18224,
    "h": 291.2
  },
  "luminance": 0.08897
}

Semantic roles & 50–950 ramp

primary
#5F3BB5
secondary
#B3C686
accent
#DA4DB1
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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