#5F3EB4#5F3EB4

#5F3EB4 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.9% C 0.177 H 290.8°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5F3EB4
RGBrgb(95, 62, 180)
HSLhsl(257, 49%, 47%)
HSVhsv(257, 66%, 71%)
CMYKcmyk(47.2%, 65.6%, 0%, 29.4%)
CIE-LABlab(36.32, 42.76, -57.85)
CIE-LCHlch(36.32, 71.94, 306.47°)
OKLaboklab(46.94% 0.063 -0.1656)
OKLCHoklch(46.94% 0.177 290.8)
XYZxyz(14.6778, 9.1729, 44.1683)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EB4 #93B43E
analogous
#3E58B4 #5F3EB4 #9A3EB4
triadic
#5F3EB4 #B45F3E #3EB45F
tetradic
#5F3EB4 #B43E58 #93B43E #3EB49A
square
#5F3EB4 #B43E58 #93B43E #3EB49A
split-complementary
#5F3EB4 #B49A3E #58B43E
monochromatic
#2F1F59 #472E86 #5F3EB4 #8165CA #A793DA

Accessibility & contrast

On white

7.41
#5F3EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5F3EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EB4
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EB4#FFFFFF#000000##FFFFFF
##5F3EB41.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#0053B2
Tritanopia (blue-blind)
#445A73
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3eb4;
/* rgb */ color: rgb(95, 62, 180);
/* oklch */ color: oklch(46.9% 0.177 290.8);
Tailwind
colors: {
  custom: {
    50: '#9375cb',
    500: '#5f3eb4',
    950: '#000000',
  },
}
SCSS
$custom: #5f3eb4;
$custom-light: #9375cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3eb4",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 180
  },
  "hsl": {
    "h": 256.78,
    "s": 48.76,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46942,
    "c": 0.1772,
    "h": 290.8
  },
  "luminance": 0.09173
}

Semantic roles & 50–950 ramp

primary
#5F3EB4
secondary
#B4C589
accent
#D84FB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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