#5F3EAE#5F3EAE

#5F3EAE is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.5% C 0.170 H 292.0°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5F3EAE
RGBrgb(95, 62, 174)
HSLhsl(258, 47%, 46%)
HSVhsv(258, 64%, 68%)
CMYKcmyk(45.4%, 64.4%, 0%, 31.8%)
CIE-LABlab(35.86, 41.04, -55.04)
CIE-LCHlch(35.86, 68.65, 306.71°)
OKLaboklab(46.47% 0.0637 -0.1573)
OKLCHoklch(46.47% 0.17 292)
XYZxyz(14.0798, 8.9337, 41.0187)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EAE #8DAE3E
analogous
#3E55AE #5F3EAE #973EAE
triadic
#5F3EAE #AE5F3E #3EAE5F
tetradic
#5F3EAE #AE3E55 #8DAE3E #3EAE97
square
#5F3EAE #AE3E55 #8DAE3E #3EAE97
split-complementary
#5F3EAE #AE973E #55AE3E
monochromatic
#2E1E54 #462E81 #5F3EAE #8062C7 #A48FD7

Accessibility & contrast

On white

7.54
#5F3EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5F3EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EAE
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EAE#FFFFFF#000000##FFFFFF
##5F3EAE1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B2
Deuteranopia (green-blind)
#0052AC
Tritanopia (blue-blind)
#485870
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f3eae;
/* rgb */ color: rgb(95, 62, 174);
/* oklch */ color: oklch(46.5% 0.170 292.0);
Tailwind
colors: {
  custom: {
    50: '#9375c7',
    500: '#5f3eae',
    950: '#000000',
  },
}
SCSS
$custom: #5f3eae;
$custom-light: #9375c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3eae",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 174
  },
  "hsl": {
    "h": 257.679,
    "s": 47.458,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46467,
    "c": 0.16972,
    "h": 292
  },
  "luminance": 0.08934
}

Semantic roles & 50–950 ramp

primary
#5F3EAE
secondary
#B0C286
accent
#D751AF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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