#5F3CA5#5F3CA5

#5F3CA5 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.5% C 0.161 H 294.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5F3CA5
RGBrgb(95, 60, 165)
HSLhsl(260, 47%, 44%)
HSVhsv(260, 64%, 65%)
CMYKcmyk(42.4%, 63.6%, 0%, 35.3%)
CIE-LABlab(34.76, 39.63, -51.43)
CIE-LCHlch(34.76, 64.93, 307.61°)
OKLaboklab(45.46% 0.0667 -0.1467)
OKLCHoklch(45.46% 0.161 294.5)
XYZxyz(13.1249, 8.3809, 36.5162)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CA5 #82A53C
analogous
#3C4EA5 #5F3CA5 #943CA5
triadic
#5F3CA5 #A55F3C #3CA55F
tetradic
#5F3CA5 #A53C4E #82A53C #3CA594
square
#5F3CA5 #A53C4E #82A53C #3CA594
split-complementary
#5F3CA5 #A5943C #4EA53C
monochromatic
#2B1B4B #452C78 #5F3CA5 #7E5BC3 #A188D4

Accessibility & contrast

On white

7.85
#5F3CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5F3CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CA5
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CA5#FFFFFF#000000##FFFFFF
##5F3CA51.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#4C546B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f3ca5;
/* rgb */ color: rgb(95, 60, 165);
/* oklch */ color: oklch(45.5% 0.161 294.5);
Tailwind
colors: {
  custom: {
    50: '#9274c0',
    500: '#5f3ca5',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ca5;
$custom-light: #9274c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ca5",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 165
  },
  "hsl": {
    "h": 260,
    "s": 46.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45463,
    "c": 0.16117,
    "h": 294.5
  },
  "luminance": 0.08381
}

Semantic roles & 50–950 ramp

primary
#5F3CA5
secondary
#A9BE7F
accent
#D651AA
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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