#5F3BC6#5F3BC6

#5F3BC6 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.0% C 0.203 H 288.2°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5F3BC6
RGBrgb(95, 59, 198)
HSLhsl(256, 55%, 50%)
HSVhsv(256, 70%, 78%)
CMYKcmyk(52%, 70.2%, 0%, 22.4%)
CIE-LABlab(37.18, 49.53, -67.01)
CIE-LCHlch(37.18, 83.33, 306.47°)
OKLaboklab(48.02% 0.0631 -0.1925)
OKLCHoklch(48.02% 0.203 288.2)
XYZxyz(16.4733, 9.6373, 54.4073)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BC6 #A2C63B
analogous
#3B5CC6 #5F3BC6 #A53BC6
triadic
#5F3BC6 #C65F3B #3BC65F
tetradic
#5F3BC6 #C63B5C #A2C63B #3BC6A5
square
#5F3BC6 #C63B5C #A2C63B #3BC6A5
split-complementary
#5F3BC6 #C6A53B #5CC63B
monochromatic
#311E68 #482C98 #5F3BC6 #866AD4 #AC9AE2

Accessibility & contrast

On white

7.17
#5F3BC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5F3BC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BC6
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BC6#FFFFFF#000000##FFFFFF
##5F3BC61.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#0054C3
Tritanopia (blue-blind)
#385F7C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3bc6;
/* rgb */ color: rgb(95, 59, 198);
/* oklch */ color: oklch(48.0% 0.203 288.2);
Tailwind
colors: {
  custom: {
    50: '#9674d8',
    500: '#5f3bc6',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bc6;
$custom-light: #9674d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bc6",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 198
  },
  "hsl": {
    "h": 255.54,
    "s": 54.941,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4802,
    "c": 0.20258,
    "h": 288.2
  },
  "luminance": 0.09638
}

Semantic roles & 50–950 ramp

primary
#5F3BC6
secondary
#BDCD8F
accent
#DE4AB8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5F3BC6

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

Preview Lab → · Contrast checker → · Palette generator →

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