#5F3FD3#5F3FD3

#5F3FD3 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.7% C 0.213 H 285.6°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5F3FD3
RGBrgb(95, 63, 211)
HSLhsl(253, 63%, 54%)
HSVhsv(253, 70%, 83%)
CMYKcmyk(55%, 70.1%, 0%, 17.3%)
CIE-LABlab(39.05, 51.16, -71.49)
CIE-LCHlch(39.05, 87.91, 305.59°)
OKLaboklab(49.69% 0.0573 -0.2056)
OKLCHoklch(49.69% 0.213 285.6)
XYZxyz(18.2511, 10.6900, 62.7171)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FD3 #B3D33F
analogous
#3F69D3 #5F3FD3 #A93FD3
triadic
#5F3FD3 #D35F3F #3FD35F
tetradic
#5F3FD3 #D33F69 #B3D33F #3FD3A9
square
#5F3FD3 #D33F69 #B3D33F #3FD3A9
split-complementary
#5F3FD3 #D3A93F #69D33F
monochromatic
#311C7B #4528AD #5F3FD3 #8871DE #B2A3EA

Accessibility & contrast

On white

6.69
#5F3FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F3FD3
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FD3#FFFFFF#000000##FFFFFF
##5F3FD31.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D7
Deuteranopia (green-blind)
#0057D0
Tritanopia (blue-blind)
#2A6685
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f3fd3;
/* rgb */ color: rgb(95, 63, 211);
/* oklch */ color: oklch(49.7% 0.213 285.6);
Tailwind
colors: {
  custom: {
    50: '#9877e2',
    500: '#5f3fd3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fd3;
$custom-light: #9877e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fd3",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 211
  },
  "hsl": {
    "h": 252.973,
    "s": 62.712,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49694,
    "c": 0.21346,
    "h": 285.6
  },
  "luminance": 0.10691
}

Semantic roles & 50–950 ramp

primary
#5F3FD3
secondary
#C9D797
accent
#E642C2
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0915
muted
#7F7B84

Preview Lab

Preview with #5F3FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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