#5F3DC5#5F3DC5

#5F3DC5 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.2% C 0.199 H 288.0°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5F3DC5
RGBrgb(95, 61, 197)
HSLhsl(255, 54%, 51%)
HSVhsv(255, 69%, 77%)
CMYKcmyk(51.8%, 69%, 0%, 22.7%)
CIE-LABlab(37.48, 48.19, -65.94)
CIE-LCHlch(37.48, 81.67, 306.16°)
OKLaboklab(48.21% 0.0615 -0.1894)
OKLCHoklch(48.21% 0.199 288)
XYZxyz(16.4631, 9.8008, 53.8368)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DC5 #A3C53D
analogous
#3D5FC5 #5F3DC5 #A33DC5
triadic
#5F3DC5 #C55F3D #3DC55F
tetradic
#5F3DC5 #C53D5F #A3C53D #3DC5A3
square
#5F3DC5 #C53D5F #A3C53D #3DC5A3
split-complementary
#5F3DC5 #C5A33D #5FC53D
monochromatic
#321F68 #482D98 #5F3DC5 #866CD3 #AD9BE1

Accessibility & contrast

On white

7.09
#5F3DC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5F3DC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3DC5
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DC5#FFFFFF#000000##FFFFFF
##5F3DC51.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#0055C2
Tritanopia (blue-blind)
#39607C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3dc5;
/* rgb */ color: rgb(95, 61, 197);
/* oklch */ color: oklch(48.2% 0.199 288.0);
Tailwind
colors: {
  custom: {
    50: '#9675d8',
    500: '#5f3dc5',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dc5;
$custom-light: #9675d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dc5",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 197
  },
  "hsl": {
    "h": 255,
    "s": 53.968,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48207,
    "c": 0.1991,
    "h": 288
  },
  "luminance": 0.09802
}

Semantic roles & 50–950 ramp

primary
#5F3DC5
secondary
#BECD91
accent
#DD4AB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5F3DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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