#5F3CA3#5F3CA3

#5F3CA3 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.3% C 0.159 H 294.9°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5F3CA3
RGBrgb(95, 60, 163)
HSLhsl(260, 46%, 44%)
HSVhsv(260, 63%, 64%)
CMYKcmyk(41.7%, 63.2%, 0%, 36.1%)
CIE-LABlab(34.62, 39.07, -50.47)
CIE-LCHlch(34.62, 63.82, 307.74°)
OKLaboklab(45.31% 0.0669 -0.1439)
OKLCHoklch(45.31% 0.159 294.9)
XYZxyz(12.9443, 8.3087, 35.5650)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CA3 #80A33C
analogous
#3C4DA3 #5F3CA3 #923CA3
triadic
#5F3CA3 #A35F3C #3CA35F
tetradic
#5F3CA3 #A33C4D #80A33C #3CA392
square
#5F3CA3 #A33C4D #80A33C #3CA392
split-complementary
#5F3CA3 #A3923C #4DA33C
monochromatic
#2B1B4A #452C76 #5F3CA3 #7D5AC2 #A187D3

Accessibility & contrast

On white

7.89
#5F3CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5F3CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CA3
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CA3#FFFFFF#000000##FFFFFF
##5F3CA31.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A6
Deuteranopia (green-blind)
#0050A1
Tritanopia (blue-blind)
#4D536A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f3ca3;
/* rgb */ color: rgb(95, 60, 163);
/* oklch */ color: oklch(45.3% 0.159 294.9);
Tailwind
colors: {
  custom: {
    50: '#9173bf',
    500: '#5f3ca3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ca3;
$custom-light: #9173bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ca3",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 163
  },
  "hsl": {
    "h": 260.388,
    "s": 46.188,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4531,
    "c": 0.15866,
    "h": 294.9
  },
  "luminance": 0.08309
}

Semantic roles & 50–950 ramp

primary
#5F3CA3
secondary
#A8BD7E
accent
#D652A9
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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