#5F3EB3#5F3EB3

#5F3EB3 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.9% C 0.176 H 291.0°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5F3EB3
RGBrgb(95, 62, 179)
HSLhsl(257, 49%, 47%)
HSVhsv(257, 65%, 70%)
CMYKcmyk(46.9%, 65.4%, 0%, 29.8%)
CIE-LABlab(36.24, 42.47, -57.39)
CIE-LCHlch(36.24, 71.39, 306.50°)
OKLaboklab(46.86% 0.0631 -0.1642)
OKLCHoklch(46.86% 0.176 291)
XYZxyz(14.5763, 9.1323, 43.6338)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EB3 #92B33E
analogous
#3E58B3 #5F3EB3 #9A3EB3
triadic
#5F3EB3 #B35F3E #3EB35F
tetradic
#5F3EB3 #B33E58 #92B33E #3EB39A
square
#5F3EB3 #B33E58 #92B33E #3EB39A
split-complementary
#5F3EB3 #B39A3E #58B33E
monochromatic
#2F1F58 #472E86 #5F3EB3 #8165CA #A692D9

Accessibility & contrast

On white

7.43
#5F3EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F3EB3
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EB3#FFFFFF#000000##FFFFFF
##5F3EB31.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B7
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#455A73
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3eb3;
/* rgb */ color: rgb(95, 62, 179);
/* oklch */ color: oklch(46.9% 0.176 291.0);
Tailwind
colors: {
  custom: {
    50: '#9375cb',
    500: '#5f3eb3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3eb3;
$custom-light: #9375cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3eb3",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 179
  },
  "hsl": {
    "h": 256.923,
    "s": 48.548,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46862,
    "c": 0.17596,
    "h": 291
  },
  "luminance": 0.09133
}

Semantic roles & 50–950 ramp

primary
#5F3EB3
secondary
#B4C588
accent
#D850B2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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