#5F3FD5#5F3FD5

#5F3FD5 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.9% C 0.216 H 285.3°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5F3FD5
RGBrgb(95, 63, 213)
HSLhsl(253, 64%, 54%)
HSVhsv(253, 70%, 84%)
CMYKcmyk(55.4%, 70.4%, 0%, 16.5%)
CIE-LABlab(39.23, 51.74, -72.36)
CIE-LCHlch(39.23, 88.95, 305.57°)
OKLaboklab(49.87% 0.0569 -0.2082)
OKLCHoklch(49.87% 0.216 285.3)
XYZxyz(18.5034, 10.7909, 64.0457)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FD5 #B5D53F
analogous
#3F6AD5 #5F3FD5 #AA3FD5
triadic
#5F3FD5 #D55F3F #3FD55F
tetradic
#5F3FD5 #D53F6A #B5D53F #3FD5AA
square
#5F3FD5 #D53F6A #B5D53F #3FD5AA
split-complementary
#5F3FD5 #D5AA3F #6AD53F
monochromatic
#311C7E #4427B0 #5F3FD5 #8971E0 #B3A3EB

Accessibility & contrast

On white

6.65
#5F3FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5F3FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FD5
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FD5#FFFFFF#000000##FFFFFF
##5F3FD51.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D9
Deuteranopia (green-blind)
#0058D2
Tritanopia (blue-blind)
#286786
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f3fd5;
/* rgb */ color: rgb(95, 63, 213);
/* oklch */ color: oklch(49.9% 0.216 285.3);
Tailwind
colors: {
  custom: {
    50: '#9877e3',
    500: '#5f3fd5',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fd5;
$custom-light: #9877e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fd5",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 213
  },
  "hsl": {
    "h": 252.8,
    "s": 64.103,
    "l": 54.118
  },
  "oklch": {
    "l": 0.4987,
    "c": 0.21582,
    "h": 285.3
  },
  "luminance": 0.10792
}

Semantic roles & 50–950 ramp

primary
#5F3FD5
secondary
#CAD898
accent
#E741C4
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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