#5F3FD6#5F3FD6

#5F3FD6 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.0% C 0.217 H 285.1°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5F3FD6
RGBrgb(95, 63, 214)
HSLhsl(253, 65%, 54%)
HSVhsv(253, 71%, 84%)
CMYKcmyk(55.6%, 70.6%, 0%, 16.1%)
CIE-LABlab(39.31, 52.03, -72.79)
CIE-LCHlch(39.31, 89.47, 305.56°)
OKLaboklab(49.96% 0.0567 -0.2095)
OKLCHoklch(49.96% 0.217 285.1)
XYZxyz(18.6307, 10.8419, 64.7163)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FD6 #B6D63F
analogous
#3F6BD6 #5F3FD6 #AA3FD6
triadic
#5F3FD6 #D65F3F #3FD65F
tetradic
#5F3FD6 #D63F6B #B6D63F #3FD6AA
square
#5F3FD6 #D63F6B #B6D63F #3FD6AA
split-complementary
#5F3FD6 #D6AA3F #6BD63F
monochromatic
#301B7F #4426B2 #5F3FD6 #8971E1 #B3A4EC

Accessibility & contrast

On white

6.63
#5F3FD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5F3FD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FD6
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FD6#FFFFFF#000000##FFFFFF
##5F3FD61.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DA
Deuteranopia (green-blind)
#0058D3
Tritanopia (blue-blind)
#266786
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f3fd6;
/* rgb */ color: rgb(95, 63, 214);
/* oklch */ color: oklch(50.0% 0.217 285.1);
Tailwind
colors: {
  custom: {
    50: '#9877e4',
    500: '#5f3fd6',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fd6;
$custom-light: #9877e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fd6",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 214
  },
  "hsl": {
    "h": 252.715,
    "s": 64.807,
    "l": 54.314
  },
  "oklch": {
    "l": 0.49958,
    "c": 0.21699,
    "h": 285.1
  },
  "luminance": 0.10843
}

Semantic roles & 50–950 ramp

primary
#5F3FD6
secondary
#CBD898
accent
#E840C4
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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