#5F3CA0#5F3CA0

#5F3CA0 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.1% C 0.155 H 295.7°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5F3CA0
RGBrgb(95, 60, 160)
HSLhsl(261, 45%, 43%)
HSVhsv(261, 63%, 63%)
CMYKcmyk(40.6%, 62.5%, 0%, 37.3%)
CIE-LABlab(34.40, 38.23, -49.01)
CIE-LCHlch(34.40, 62.16, 307.96°)
OKLaboklab(45.08% 0.0671 -0.1396)
OKLCHoklch(45.08% 0.155 295.7)
XYZxyz(12.6787, 8.2024, 34.1661)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CA0 #7DA03C
analogous
#3C4BA0 #5F3CA0 #913CA0
triadic
#5F3CA0 #A05F3C #3CA05F
tetradic
#5F3CA0 #A03C4B #7DA03C #3CA091
square
#5F3CA0 #A03C4B #7DA03C #3CA091
split-complementary
#5F3CA0 #A0913C #4BA03C
monochromatic
#2A1B47 #452B73 #5F3CA0 #7D59C1 #A085D1

Accessibility & contrast

On white

7.95
#5F3CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5F3CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CA0
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CA0#FFFFFF#000000##FFFFFF
##5F3CA01.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A3
Deuteranopia (green-blind)
#034F9E
Tritanopia (blue-blind)
#4F5268
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f3ca0;
/* rgb */ color: rgb(95, 60, 160);
/* oklch */ color: oklch(45.1% 0.155 295.7);
Tailwind
colors: {
  custom: {
    50: '#9173bd',
    500: '#5f3ca0',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ca0;
$custom-light: #9173bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ca0",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 160
  },
  "hsl": {
    "h": 261,
    "s": 45.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.45084,
    "c": 0.15487,
    "h": 295.7
  },
  "luminance": 0.08203
}

Semantic roles & 50–950 ramp

primary
#5F3CA0
secondary
#A5BB7C
accent
#D553A7
background
#F9F7FB
surface
#F2EDF6
border
#CCC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F3CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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