#5F3FD2#5F3FD2

#5F3FD2 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.6% C 0.212 H 285.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5F3FD2
RGBrgb(95, 63, 210)
HSLhsl(253, 62%, 54%)
HSVhsv(253, 70%, 82%)
CMYKcmyk(54.8%, 70%, 0%, 17.6%)
CIE-LABlab(38.97, 50.87, -71.05)
CIE-LCHlch(38.97, 87.39, 305.60°)
OKLaboklab(49.61% 0.0575 -0.2044)
OKLCHoklch(49.61% 0.212 285.7)
XYZxyz(18.1262, 10.6400, 62.0589)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FD2 #B2D23F
analogous
#3F68D2 #5F3FD2 #A83FD2
triadic
#5F3FD2 #D25F3F #3FD25F
tetradic
#5F3FD2 #D23F68 #B2D23F #3FD2A8
square
#5F3FD2 #D23F68 #B2D23F #3FD2A8
split-complementary
#5F3FD2 #D2A83F #68D23F
monochromatic
#311D7A #4528AC #5F3FD2 #8871DE #B2A2E9

Accessibility & contrast

On white

6.71
#5F3FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5F3FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FD2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FD2#FFFFFF#000000##FFFFFF
##5F3FD21.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D6
Deuteranopia (green-blind)
#0057CF
Tritanopia (blue-blind)
#2B6684
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f3fd2;
/* rgb */ color: rgb(95, 63, 210);
/* oklch */ color: oklch(49.6% 0.212 285.7);
Tailwind
colors: {
  custom: {
    50: '#9877e1',
    500: '#5f3fd2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fd2;
$custom-light: #9877e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fd2",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 210
  },
  "hsl": {
    "h": 253.061,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49606,
    "c": 0.21228,
    "h": 285.7
  },
  "luminance": 0.10641
}

Semantic roles & 50–950 ramp

primary
#5F3FD2
secondary
#C8D697
accent
#E543C2
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #5F3FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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