#5F3FD1#5F3FD1

#5F3FD1 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.5% C 0.211 H 285.8°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#5F3FD1
RGBrgb(95, 63, 209)
HSLhsl(253, 61%, 53%)
HSVhsv(253, 70%, 82%)
CMYKcmyk(54.5%, 69.9%, 0%, 18%)
CIE-LABlab(38.88, 50.58, -70.61)
CIE-LCHlch(38.88, 86.86, 305.61°)
OKLaboklab(49.52% 0.0576 -0.2031)
OKLCHoklch(49.52% 0.211 285.8)
XYZxyz(18.0020, 10.5904, 61.4048)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FD1 #B1D13F
analogous
#3F68D1 #5F3FD1 #A83FD1
triadic
#5F3FD1 #D15F3F #3FD15F
tetradic
#5F3FD1 #D13F68 #B1D13F #3FD1A8
square
#5F3FD1 #D13F68 #B1D13F #3FD1A8
split-complementary
#5F3FD1 #D1A83F #68D13F
monochromatic
#311D79 #4529AA #5F3FD1 #8870DD #B1A2E9

Accessibility & contrast

On white

6.73
#5F3FD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5F3FD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FD1
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FD1#FFFFFF#000000##FFFFFF
##5F3FD11.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD5
Deuteranopia (green-blind)
#0057CE
Tritanopia (blue-blind)
#2D6583
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f3fd1;
/* rgb */ color: rgb(95, 63, 209);
/* oklch */ color: oklch(49.5% 0.211 285.8);
Tailwind
colors: {
  custom: {
    50: '#9777e0',
    500: '#5f3fd1',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fd1;
$custom-light: #9777e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fd1",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 209
  },
  "hsl": {
    "h": 253.151,
    "s": 61.345,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49519,
    "c": 0.2111,
    "h": 285.8
  },
  "luminance": 0.10591
}

Semantic roles & 50–950 ramp

primary
#5F3FD1
secondary
#C8D597
accent
#E443C1
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #5F3FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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