#5F4ABA#5F4ABA

#5F4ABA is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.3% C 0.169 H 287.1°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5F4ABA
RGBrgb(95, 74, 186)
HSLhsl(251, 45%, 51%)
HSVhsv(251, 60%, 73%)
CMYKcmyk(48.9%, 60.2%, 0%, 27.1%)
CIE-LABlab(39.37, 37.58, -56.43)
CIE-LCHlch(39.37, 67.80, 303.66°)
OKLaboklab(49.31% 0.0497 -0.1614)
OKLCHoklch(49.31% 0.169 287.1)
XYZxyz(16.0284, 10.8749, 47.6994)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4ABA #A5BA4A
analogous
#4A6DBA #5F4ABA #974ABA
triadic
#5F4ABA #BA5F4A #4ABA5F
tetradic
#5F4ABA #BA4A6D #A5BA4A #4ABA97
square
#5F4ABA #BA4A6D #A5BA4A #4ABA97
split-complementary
#5F4ABA #BA974A #6DBA4A
monochromatic
#322664 #483790 #5F4ABA #8676CB #ADA3DC

Accessibility & contrast

On white

6.61
#5F4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5F4ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4ABA
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4ABA#FFFFFF#000000##FFFFFF
##5F4ABA1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#40647B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f4aba;
/* rgb */ color: rgb(95, 74, 186);
/* oklch */ color: oklch(49.3% 0.169 287.1);
Tailwind
colors: {
  custom: {
    50: '#937dcf',
    500: '#5f4aba',
    950: '#000000',
  },
}
SCSS
$custom: #5f4aba;
$custom-light: #937dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4aba",
  "rgb": {
    "r": 95,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 251.25,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49306,
    "c": 0.16889,
    "h": 287.1
  },
  "luminance": 0.10876
}

Semantic roles & 50–950 ramp

primary
#5F4ABA
secondary
#BFC997
accent
#D553BC
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #5F4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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