#5F3DD6#5F3DD6

#5F3DD6 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.7% C 0.219 H 285.4°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5F3DD6
RGBrgb(95, 61, 214)
HSLhsl(253, 65%, 54%)
HSVhsv(253, 71%, 84%)
CMYKcmyk(55.6%, 71.5%, 0%, 16.1%)
CIE-LABlab(38.94, 53.07, -73.40)
CIE-LCHlch(38.94, 90.58, 305.87°)
OKLaboklab(49.69% 0.0583 -0.2112)
OKLCHoklch(49.69% 0.219 285.4)
XYZxyz(18.5220, 10.6244, 64.6800)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DD6 #B4D63D
analogous
#3D68D6 #5F3DD6 #AB3DD6
triadic
#5F3DD6 #D65F3D #3DD65F
tetradic
#5F3DD6 #D63D68 #B4D63D #3DD6AB
square
#5F3DD6 #D63D68 #B4D63D #3DD6AB
split-complementary
#5F3DD6 #D6AB3D #68D63D
monochromatic
#311B7E #4425B1 #5F3DD6 #8970E1 #B2A2EB

Accessibility & contrast

On white

6.72
#5F3DD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F3DD6
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DD6#FFFFFF#000000##FFFFFF
##5F3DD61.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DA
Deuteranopia (green-blind)
#0057D3
Tritanopia (blue-blind)
#276686
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f3dd6;
/* rgb */ color: rgb(95, 61, 214);
/* oklch */ color: oklch(49.7% 0.219 285.4);
Tailwind
colors: {
  custom: {
    50: '#9876e4',
    500: '#5f3dd6',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dd6;
$custom-light: #9876e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dd6",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 214
  },
  "hsl": {
    "h": 253.333,
    "s": 65.106,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49694,
    "c": 0.21913,
    "h": 285.4
  },
  "luminance": 0.10625
}

Semantic roles & 50–950 ramp

primary
#5F3DD6
secondary
#CAD897
accent
#E840C3
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3DD6

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

Preview Lab → · Contrast checker → · Palette generator →

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