#5F4EAE#5F4EAE

#5F4EAE is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.1% C 0.147 H 287.9°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#5F4EAE
RGBrgb(95, 78, 174)
HSLhsl(251, 38%, 49%)
HSVhsv(251, 55%, 68%)
CMYKcmyk(45.4%, 55.2%, 0%, 31.8%)
CIE-LABlab(39.47, 31.58, -49.19)
CIE-LCHlch(39.47, 58.45, 302.70°)
OKLaboklab(49.12% 0.0452 -0.1401)
OKLCHoklch(49.12% 0.147 287.9)
XYZxyz(15.0815, 10.9371, 41.3526)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4EAE #9DAE4E
analogous
#4E6DAE #5F4EAE #8F4EAE
triadic
#5F4EAE #AE5F4E #4EAE5F
tetradic
#5F4EAE #AE4E6D #9DAE4E #4EAE8F
square
#5F4EAE #AE4E6D #9DAE4E #4EAE8F
split-complementary
#5F4EAE #AE8F4E #6DAE4E
monochromatic
#312859 #483B84 #5F4EAE #8477C2 #ABA1D5

Accessibility & contrast

On white

6.59
#5F4EAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5F4EAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4EAE
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4EAE#FFFFFF#000000##FFFFFF
##5F4EAE1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5FB1
Deuteranopia (green-blind)
#1B5AAC
Tritanopia (blue-blind)
#476376
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f4eae;
/* rgb */ color: rgb(95, 78, 174);
/* oklch */ color: oklch(49.1% 0.147 287.9);
Tailwind
colors: {
  custom: {
    50: '#9280c7',
    500: '#5f4eae',
    950: '#000000',
  },
}
SCSS
$custom: #5f4eae;
$custom-light: #9280c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4eae",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 174
  },
  "hsl": {
    "h": 250.625,
    "s": 38.095,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4912,
    "c": 0.14721,
    "h": 287.9
  },
  "luminance": 0.10938
}

Semantic roles & 50–950 ramp

primary
#5F4EAE
secondary
#BAC296
accent
#CE5AB9
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5F4EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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