#5F3FAE#5F3FAE

#5F3FAE is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.6% C 0.168 H 291.8°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#5F3FAE
RGBrgb(95, 63, 174)
HSLhsl(257, 47%, 46%)
HSVhsv(257, 64%, 68%)
CMYKcmyk(45.4%, 63.8%, 0%, 31.8%)
CIE-LABlab(36.07, 40.47, -54.70)
CIE-LCHlch(36.07, 68.04, 306.50°)
OKLaboklab(46.62% 0.0626 -0.1563)
OKLCHoklch(46.62% 0.168 291.8)
XYZxyz(14.1347, 9.0434, 41.0370)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FAE #8EAE3F
analogous
#3F57AE #5F3FAE #973FAE
triadic
#5F3FAE #AE5F3F #3FAE5F
tetradic
#5F3FAE #AE3F57 #8EAE3F #3FAE97
square
#5F3FAE #AE3F57 #8EAE3F #3FAE97
split-complementary
#5F3FAE #AE973F #57AE3F
monochromatic
#2E1E54 #462F81 #5F3FAE #8064C7 #A590D7

Accessibility & contrast

On white

7.48
#5F3FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5F3FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3FAE
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FAE#FFFFFF#000000##FFFFFF
##5F3FAE1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B2
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#485970
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3fae;
/* rgb */ color: rgb(95, 63, 174);
/* oklch */ color: oklch(46.6% 0.168 291.8);
Tailwind
colors: {
  custom: {
    50: '#9376c7',
    500: '#5f3fae',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fae;
$custom-light: #9376c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fae",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 174
  },
  "hsl": {
    "h": 257.297,
    "s": 46.835,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4662,
    "c": 0.16837,
    "h": 291.8
  },
  "luminance": 0.09044
}

Semantic roles & 50–950 ramp

primary
#5F3FAE
secondary
#B1C287
accent
#D651B0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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