#5F3CC1#5F3CC1

#5F3CC1 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.7% C 0.195 H 288.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5F3CC1
RGBrgb(95, 60, 193)
HSLhsl(256, 53%, 50%)
HSVhsv(256, 69%, 76%)
CMYKcmyk(50.8%, 68.9%, 0%, 24.3%)
CIE-LABlab(36.96, 47.58, -64.46)
CIE-LCHlch(36.96, 80.12, 306.43°)
OKLaboklab(47.73% 0.0631 -0.185)
OKLCHoklch(47.73% 0.195 288.8)
XYZxyz(15.9580, 9.5142, 51.4373)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CC1 #9EC13C
analogous
#3C5CC1 #5F3CC1 #A13CC1
triadic
#5F3CC1 #C15F3C #3CC15F
tetradic
#5F3CC1 #C13C5C #9EC13C #3CC1A1
square
#5F3CC1 #C13C5C #9EC13C #3CC1A1
split-complementary
#5F3CC1 #C1A13C #5CC13C
monochromatic
#311F64 #482D92 #5F3CC1 #856AD1 #AB98DF

Accessibility & contrast

On white

7.23
#5F3CC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5F3CC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CC1
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CC1#FFFFFF#000000##FFFFFF
##5F3CC11.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC5
Deuteranopia (green-blind)
#0054BE
Tritanopia (blue-blind)
#3C5E7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3cc1;
/* rgb */ color: rgb(95, 60, 193);
/* oklch */ color: oklch(47.7% 0.195 288.8);
Tailwind
colors: {
  custom: {
    50: '#9574d5',
    500: '#5f3cc1',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cc1;
$custom-light: #9574d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cc1",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 193
  },
  "hsl": {
    "h": 255.789,
    "s": 52.569,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47728,
    "c": 0.19549,
    "h": 288.8
  },
  "luminance": 0.09515
}

Semantic roles & 50–950 ramp

primary
#5F3CC1
secondary
#BBCB8E
accent
#DC4CB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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