#5F3ED6#5F3ED6

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

Color values

HEX#5F3ED6
RGBrgb(95, 62, 214)
HSLhsl(253, 65%, 54%)
HSVhsv(253, 71%, 84%)
CMYKcmyk(55.6%, 71%, 0%, 16.1%)
CIE-LABlab(39.13, 52.55, -73.10)
CIE-LCHlch(39.13, 90.03, 305.71°)
OKLaboklab(49.83% 0.0575 -0.2103)
OKLCHoklch(49.83% 0.218 285.3)
XYZxyz(18.5759, 10.7321, 64.6980)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3ED6 #B5D63E
analogous
#3E69D6 #5F3ED6 #AB3ED6
triadic
#5F3ED6 #D65F3E #3ED65F
tetradic
#5F3ED6 #D63E69 #B5D63E #3ED6AB
square
#5F3ED6 #D63E69 #B5D63E #3ED6AB
split-complementary
#5F3ED6 #D6AB3E #69D63E
monochromatic
#311B7F #4426B1 #5F3ED6 #8970E1 #B3A3EB

Accessibility & contrast

On white

6.67
#5F3ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5F3ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3ED6
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3ED6#FFFFFF#000000##FFFFFF
##5F3ED61.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3ed6;
/* rgb */ color: rgb(95, 62, 214);
/* oklch */ color: oklch(49.8% 0.218 285.3);
Tailwind
colors: {
  custom: {
    50: '#9876e4',
    500: '#5f3ed6',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ed6;
$custom-light: #9876e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ed6",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 214
  },
  "hsl": {
    "h": 253.026,
    "s": 64.957,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49825,
    "c": 0.21806,
    "h": 285.3
  },
  "luminance": 0.10733
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F3ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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