#5F3AC3#5F3AC3

#5F3AC3 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.6% C 0.200 H 288.8°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5F3AC3
RGBrgb(95, 58, 195)
HSLhsl(256, 54%, 50%)
HSVhsv(256, 70%, 76%)
CMYKcmyk(51.3%, 70.3%, 0%, 23.5%)
CIE-LABlab(36.74, 49.21, -65.98)
CIE-LCHlch(36.74, 82.31, 306.71°)
OKLaboklab(47.63% 0.0646 -0.1895)
OKLCHoklch(47.63% 0.2 288.8)
XYZxyz(16.0798, 9.3984, 52.5860)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3AC3 #9EC33A
analogous
#3A5AC3 #5F3AC3 #A33AC3
triadic
#5F3AC3 #C35F3A #3AC35F
tetradic
#5F3AC3 #C33A5A #9EC33A #3AC3A3
square
#5F3AC3 #C33A5A #9EC33A #3AC3A3
split-complementary
#5F3AC3 #C3A33A #5AC33A
monochromatic
#311E65 #482C94 #5F3AC3 #8568D2 #AB97E0

Accessibility & contrast

On white

7.29
#5F3AC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5F3AC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3AC3
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3AC3#FFFFFF#000000##FFFFFF
##5F3AC31.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#0053C0
Tritanopia (blue-blind)
#3A5E7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f3ac3;
/* rgb */ color: rgb(95, 58, 195);
/* oklch */ color: oklch(47.6% 0.200 288.8);
Tailwind
colors: {
  custom: {
    50: '#9673d6',
    500: '#5f3ac3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ac3;
$custom-light: #9673d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ac3",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 195
  },
  "hsl": {
    "h": 256.204,
    "s": 54.15,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47626,
    "c": 0.20018,
    "h": 288.8
  },
  "luminance": 0.09399
}

Semantic roles & 50–950 ramp

primary
#5F3AC3
secondary
#BBCC8D
accent
#DE4AB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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