#5F3CC2#5F3CC2

#5F3CC2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.8% C 0.197 H 288.7°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5F3CC2
RGBrgb(95, 60, 194)
HSLhsl(256, 53%, 50%)
HSVhsv(256, 69%, 76%)
CMYKcmyk(51%, 69.1%, 0%, 23.9%)
CIE-LABlab(37.04, 47.86, -64.91)
CIE-LCHlch(37.04, 80.65, 306.40°)
OKLaboklab(47.81% 0.0629 -0.1863)
OKLCHoklch(47.81% 0.197 288.7)
XYZxyz(16.0699, 9.5589, 52.0268)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CC2 #9FC23C
analogous
#3C5CC2 #5F3CC2 #A23CC2
triadic
#5F3CC2 #C25F3C #3CC25F
tetradic
#5F3CC2 #C23C5C #9FC23C #3CC2A2
square
#5F3CC2 #C23C5C #9FC23C #3CC2A2
split-complementary
#5F3CC2 #C2A23C #5CC23C
monochromatic
#311F65 #482E93 #5F3CC2 #856AD1 #AB99DF

Accessibility & contrast

On white

7.21
#5F3CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5F3CC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CC2
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CC2#FFFFFF#000000##FFFFFF
##5F3CC21.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#3B5E7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3cc2;
/* rgb */ color: rgb(95, 60, 194);
/* oklch */ color: oklch(47.8% 0.197 288.7);
Tailwind
colors: {
  custom: {
    50: '#9574d5',
    500: '#5f3cc2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cc2;
$custom-light: #9574d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cc2",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 194
  },
  "hsl": {
    "h": 255.672,
    "s": 52.756,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47813,
    "c": 0.19668,
    "h": 288.7
  },
  "luminance": 0.0956
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F3CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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