#5F3CC3#5F3CC3

#5F3CC3 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.9% C 0.198 H 288.5°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5F3CC3
RGBrgb(95, 60, 195)
HSLhsl(256, 53%, 50%)
HSVhsv(256, 69%, 76%)
CMYKcmyk(51.3%, 69.2%, 0%, 23.5%)
CIE-LABlab(37.12, 48.15, -65.36)
CIE-LCHlch(37.12, 81.18, 306.38°)
OKLaboklab(47.9% 0.0628 -0.1877)
OKLCHoklch(47.9% 0.198 288.5)
XYZxyz(16.1826, 9.6040, 52.6203)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CC3 #A0C33C
analogous
#3C5CC3 #5F3CC3 #A33CC3
triadic
#5F3CC3 #C35F3C #3CC35F
tetradic
#5F3CC3 #C33C5C #A0C33C #3CC3A3
square
#5F3CC3 #C33C5C #A0C33C #3CC3A3
split-complementary
#5F3CC3 #C3A33C #5CC33C
monochromatic
#311F65 #482E94 #5F3CC3 #856BD1 #AC9AE0

Accessibility & contrast

On white

7.19
#5F3CC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5F3CC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CC3
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CC3#FFFFFF#000000##FFFFFF
##5F3CC31.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#3A5F7B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3cc3;
/* rgb */ color: rgb(95, 60, 195);
/* oklch */ color: oklch(47.9% 0.198 288.5);
Tailwind
colors: {
  custom: {
    50: '#9674d6',
    500: '#5f3cc3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cc3;
$custom-light: #9674d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cc3",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 195
  },
  "hsl": {
    "h": 255.556,
    "s": 52.941,
    "l": 50
  },
  "oklch": {
    "l": 0.47898,
    "c": 0.19788,
    "h": 288.5
  },
  "luminance": 0.09605
}

Semantic roles & 50–950 ramp

primary
#5F3CC3
secondary
#BCCC8F
accent
#DC4BB7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3CC3

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

Preview Lab → · Contrast checker → · Palette generator →

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