#5F3DC6#5F3DC6

#5F3DC6 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.3% C 0.200 H 287.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#5F3DC6
RGBrgb(95, 61, 198)
HSLhsl(255, 55%, 51%)
HSVhsv(255, 69%, 78%)
CMYKcmyk(52%, 69.2%, 0%, 22.4%)
CIE-LABlab(37.57, 48.47, -66.39)
CIE-LCHlch(37.57, 82.20, 306.14°)
OKLaboklab(48.29% 0.0613 -0.1907)
OKLCHoklch(48.29% 0.2 287.8)
XYZxyz(16.5781, 9.8468, 54.4422)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DC6 #A4C63D
analogous
#3D5FC6 #5F3DC6 #A43DC6
triadic
#5F3DC6 #C65F3D #3DC65F
tetradic
#5F3DC6 #C63D5F #A4C63D #3DC6A4
square
#5F3DC6 #C63D5F #A4C63D #3DC6A4
split-complementary
#5F3DC6 #C6A43D #5FC63D
monochromatic
#321F6A #482D99 #5F3DC6 #866CD4 #AD9CE2

Accessibility & contrast

On white

7.07
#5F3DC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5F3DC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3DC6
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DC6#FFFFFF#000000##FFFFFF
##5F3DC61.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCA
Deuteranopia (green-blind)
#0055C3
Tritanopia (blue-blind)
#38607D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3dc6;
/* rgb */ color: rgb(95, 61, 198);
/* oklch */ color: oklch(48.3% 0.200 287.8);
Tailwind
colors: {
  custom: {
    50: '#9675d8',
    500: '#5f3dc6',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dc6;
$custom-light: #9675d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dc6",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 198
  },
  "hsl": {
    "h": 254.891,
    "s": 54.582,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48293,
    "c": 0.20029,
    "h": 287.8
  },
  "luminance": 0.09848
}

Semantic roles & 50–950 ramp

primary
#5F3DC6
secondary
#BFCE91
accent
#DE4AB9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5F3DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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