#5F3AB2#5F3AB2

#5F3AB2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.2% C 0.180 H 292.0°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5F3AB2
RGBrgb(95, 58, 178)
HSLhsl(259, 51%, 46%)
HSVhsv(259, 67%, 70%)
CMYKcmyk(46.6%, 67.4%, 0%, 30.2%)
CIE-LABlab(35.35, 44.40, -58.24)
CIE-LCHlch(35.35, 73.24, 307.32°)
OKLaboklab(46.2% 0.0674 -0.1667)
OKLCHoklch(46.2% 0.18 292)
XYZxyz(14.2660, 8.6729, 43.0332)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3AB2 #8DB23A
analogous
#3A51B2 #5F3AB2 #9B3AB2
triadic
#5F3AB2 #B25F3A #3AB25F
tetradic
#5F3AB2 #B23A51 #8DB23A #3AB29B
square
#5F3AB2 #B23A51 #8DB23A #3AB29B
split-complementary
#5F3AB2 #B29B3A #51B23A
monochromatic
#2E1C56 #462B84 #5F3AB2 #805FCB #A48DDA

Accessibility & contrast

On white

7.68
#5F3AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5F3AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3AB2
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3AB2#FFFFFF#000000##FFFFFF
##5F3AB21.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#465771
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f3ab2;
/* rgb */ color: rgb(95, 58, 178);
/* oklch */ color: oklch(46.2% 0.180 292.0);
Tailwind
colors: {
  custom: {
    50: '#9373ca',
    500: '#5f3ab2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ab2;
$custom-light: #9373ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ab2",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 258.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46196,
    "c": 0.17986,
    "h": 292
  },
  "luminance": 0.08673
}

Semantic roles & 50–950 ramp

primary
#5F3AB2
secondary
#B0C483
accent
#DA4DAF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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