#5F3DD3#5F3DD3

#5F3DD3 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.4% C 0.216 H 285.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#5F3DD3
RGBrgb(95, 61, 211)
HSLhsl(254, 63%, 53%)
HSVhsv(254, 71%, 83%)
CMYKcmyk(55%, 71.1%, 0%, 17.3%)
CIE-LABlab(38.68, 52.21, -72.10)
CIE-LCHlch(38.68, 89.02, 305.91°)
OKLaboklab(49.43% 0.0589 -0.2074)
OKLCHoklch(49.43% 0.216 285.8)
XYZxyz(18.1424, 10.4725, 62.6808)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DD3 #B1D33D
analogous
#3D66D3 #5F3DD3 #AA3DD3
triadic
#5F3DD3 #D35F3D #3DD35F
tetradic
#5F3DD3 #D33D66 #B1D33D #3DD3AA
square
#5F3DD3 #D33D66 #B1D33D #3DD3AA
split-complementary
#5F3DD3 #D3AA3D #66D33D
monochromatic
#311C7A #4527AC #5F3DD3 #886FDE #B1A1EA

Accessibility & contrast

On white

6.79
#5F3DD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5F3DD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3DD3
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DD3#FFFFFF#000000##FFFFFF
##5F3DD31.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD7
Deuteranopia (green-blind)
#0057D0
Tritanopia (blue-blind)
#2A6584
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f3dd3;
/* rgb */ color: rgb(95, 61, 211);
/* oklch */ color: oklch(49.4% 0.216 285.8);
Tailwind
colors: {
  custom: {
    50: '#9876e2',
    500: '#5f3dd3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dd3;
$custom-light: #9876e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dd3",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 211
  },
  "hsl": {
    "h": 253.6,
    "s": 63.025,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49426,
    "c": 0.21563,
    "h": 285.8
  },
  "luminance": 0.10474
}

Semantic roles & 50–950 ramp

primary
#5F3DD3
secondary
#C8D696
accent
#E642C1
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0915
muted
#7F7B84

Preview Lab

Preview with #5F3DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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