#5F3AC2#5F3AC2

#5F3AC2 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.5% C 0.199 H 289.0°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5F3AC2
RGBrgb(95, 58, 194)
HSLhsl(256, 54%, 49%)
HSVhsv(256, 70%, 76%)
CMYKcmyk(51%, 70.1%, 0%, 23.9%)
CIE-LABlab(36.66, 48.92, -65.54)
CIE-LCHlch(36.66, 81.78, 306.74°)
OKLaboklab(47.54% 0.0648 -0.1882)
OKLCHoklch(47.54% 0.199 289)
XYZxyz(15.9671, 9.3533, 51.9925)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3AC2 #9DC23A
analogous
#3A59C2 #5F3AC2 #A33AC2
triadic
#5F3AC2 #C25F3A #3AC25F
tetradic
#5F3AC2 #C23A59 #9DC23A #3AC2A3
square
#5F3AC2 #C23A59 #9DC23A #3AC2A3
split-complementary
#5F3AC2 #C2A33A #59C23A
monochromatic
#311E64 #482C93 #5F3AC2 #8467D2 #AB97E0

Accessibility & contrast

On white

7.32
#5F3AC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5F3AC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3AC2
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3AC2#FFFFFF#000000##FFFFFF
##5F3AC21.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#3B5D7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f3ac2;
/* rgb */ color: rgb(95, 58, 194);
/* oklch */ color: oklch(47.5% 0.199 289.0);
Tailwind
colors: {
  custom: {
    50: '#9673d5',
    500: '#5f3ac2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ac2;
$custom-light: #9673d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ac2",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 194
  },
  "hsl": {
    "h": 256.324,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47539,
    "c": 0.199,
    "h": 289
  },
  "luminance": 0.09354
}

Semantic roles & 50–950 ramp

primary
#5F3AC2
secondary
#BACB8D
accent
#DD4AB5
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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