#5F3CAA#5F3CAA

#5F3CAA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.9% C 0.167 H 293.3°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5F3CAA
RGBrgb(95, 60, 170)
HSLhsl(259, 48%, 45%)
HSVhsv(259, 65%, 67%)
CMYKcmyk(44.1%, 64.7%, 0%, 33.3%)
CIE-LABlab(35.14, 41.03, -53.82)
CIE-LCHlch(35.14, 67.68, 307.32°)
OKLaboklab(45.85% 0.0663 -0.1537)
OKLCHoklch(45.85% 0.167 293.3)
XYZxyz(13.5889, 8.5665, 38.9599)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CAA #87AA3C
analogous
#3C50AA #5F3CAA #963CAA
triadic
#5F3CAA #AA5F3C #3CAA5F
tetradic
#5F3CAA #AA3C50 #87AA3C #3CAA96
square
#5F3CAA #AA3C50 #87AA3C #3CAA96
split-complementary
#5F3CAA #AA963C #50AA3C
monochromatic
#2C1C50 #462C7D #5F3CAA #7F5DC6 #A28BD6

Accessibility & contrast

On white

7.74
#5F3CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5F3CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CAA
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CAA#FFFFFF#000000##FFFFFF
##5F3CAA1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AD
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#4A566D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f3caa;
/* rgb */ color: rgb(95, 60, 170);
/* oklch */ color: oklch(45.9% 0.167 293.3);
Tailwind
colors: {
  custom: {
    50: '#9274c4',
    500: '#5f3caa',
    950: '#000000',
  },
}
SCSS
$custom: #5f3caa;
$custom-light: #9274c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3caa",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 170
  },
  "hsl": {
    "h": 259.091,
    "s": 47.826,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4585,
    "c": 0.16742,
    "h": 293.3
  },
  "luminance": 0.08567
}

Semantic roles & 50–950 ramp

primary
#5F3CAA
secondary
#ACC081
accent
#D750AC
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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