#5F3DD7#5F3DD7

#5F3DD7 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.8% C 0.220 H 285.3°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5F3DD7
RGBrgb(95, 61, 215)
HSLhsl(253, 66%, 54%)
HSVhsv(253, 72%, 84%)
CMYKcmyk(55.8%, 71.6%, 0%, 15.7%)
CIE-LABlab(39.03, 53.36, -73.83)
CIE-LCHlch(39.03, 91.09, 305.85°)
OKLaboklab(49.78% 0.0581 -0.2125)
OKLCHoklch(49.78% 0.22 285.3)
XYZxyz(18.6501, 10.6756, 65.3547)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DD7 #B5D73D
analogous
#3D68D7 #5F3DD7 #AC3DD7
triadic
#5F3DD7 #D75F3D #3DD75F
tetradic
#5F3DD7 #D73D68 #B5D73D #3DD7AC
square
#5F3DD7 #D73D68 #B5D73D #3DD7AC
split-complementary
#5F3DD7 #D7AC3D #68D73D
monochromatic
#311A7F #4425B2 #5F3DD7 #8970E1 #B3A2EC

Accessibility & contrast

On white

6.70
#5F3DD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5F3DD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3DD7
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DD7#FFFFFF#000000##FFFFFF
##5F3DD71.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DC
Deuteranopia (green-blind)
#0057D4
Tritanopia (blue-blind)
#256786
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f3dd7;
/* rgb */ color: rgb(95, 61, 215);
/* oklch */ color: oklch(49.8% 0.220 285.3);
Tailwind
colors: {
  custom: {
    50: '#9876e5',
    500: '#5f3dd7',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dd7;
$custom-light: #9876e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dd7",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 215
  },
  "hsl": {
    "h": 253.247,
    "s": 65.812,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49783,
    "c": 0.22029,
    "h": 285.3
  },
  "luminance": 0.10677
}

Semantic roles & 50–950 ramp

primary
#5F3DD7
secondary
#CAD997
accent
#E93FC3
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3DD7

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

Preview Lab → · Contrast checker → · Palette generator →

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