#5F3EB2#5F3EB2

#5F3EB2 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.8% C 0.175 H 291.2°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5F3EB2
RGBrgb(95, 62, 178)
HSLhsl(257, 48%, 47%)
HSVhsv(257, 65%, 70%)
CMYKcmyk(46.6%, 65.2%, 0%, 30.2%)
CIE-LABlab(36.16, 42.18, -56.92)
CIE-LCHlch(36.16, 70.85, 306.54°)
OKLaboklab(46.78% 0.0633 -0.1629)
OKLCHoklch(46.78% 0.175 291.2)
XYZxyz(14.4756, 9.0920, 43.1031)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EB2 #91B23E
analogous
#3E57B2 #5F3EB2 #993EB2
triadic
#5F3EB2 #B25F3E #3EB25F
tetradic
#5F3EB2 #B23E57 #91B23E #3EB299
square
#5F3EB2 #B23E57 #91B23E #3EB299
split-complementary
#5F3EB2 #B2993E #57B23E
monochromatic
#2F1E57 #472E85 #5F3EB2 #8164C9 #A692D9

Accessibility & contrast

On white

7.45
#5F3EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5F3EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EB2
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EB2#FFFFFF#000000##FFFFFF
##5F3EB21.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#465A72
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f3eb2;
/* rgb */ color: rgb(95, 62, 178);
/* oklch */ color: oklch(46.8% 0.175 291.2);
Tailwind
colors: {
  custom: {
    50: '#9375ca',
    500: '#5f3eb2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3eb2;
$custom-light: #9375ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3eb2",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 178
  },
  "hsl": {
    "h": 257.069,
    "s": 48.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46783,
    "c": 0.17471,
    "h": 291.2
  },
  "luminance": 0.09092
}

Semantic roles & 50–950 ramp

primary
#5F3EB2
secondary
#B3C488
accent
#D850B1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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