#5F3CA4#5F3CA4

#5F3CA4 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.4% C 0.160 H 294.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5F3CA4
RGBrgb(95, 60, 164)
HSLhsl(260, 46%, 44%)
HSVhsv(260, 63%, 64%)
CMYKcmyk(42.1%, 63.4%, 0%, 35.7%)
CIE-LABlab(34.69, 39.35, -50.95)
CIE-LCHlch(34.69, 64.37, 307.68°)
OKLaboklab(45.39% 0.0668 -0.1453)
OKLCHoklch(45.39% 0.16 294.7)
XYZxyz(13.0342, 8.3446, 36.0387)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CA4 #81A43C
analogous
#3C4DA4 #5F3CA4 #933CA4
triadic
#5F3CA4 #A45F3C #3CA45F
tetradic
#5F3CA4 #A43C4D #81A43C #3CA493
square
#5F3CA4 #A43C4D #81A43C #3CA493
split-complementary
#5F3CA4 #A4933C #4DA43C
monochromatic
#2B1B4A #452C77 #5F3CA4 #7E5AC3 #A187D3

Accessibility & contrast

On white

7.87
#5F3CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5F3CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CA4
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CA4#FFFFFF#000000##FFFFFF
##5F3CA41.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#0050A2
Tritanopia (blue-blind)
#4D546A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f3ca4;
/* rgb */ color: rgb(95, 60, 164);
/* oklch */ color: oklch(45.4% 0.160 294.7);
Tailwind
colors: {
  custom: {
    50: '#9274c0',
    500: '#5f3ca4',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ca4;
$custom-light: #9274c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ca4",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 164
  },
  "hsl": {
    "h": 260.192,
    "s": 46.429,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45387,
    "c": 0.15992,
    "h": 294.7
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F3CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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