#5F4ABE#5F4ABE

#5F4ABE is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.6% C 0.174 H 286.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5F4ABE
RGBrgb(95, 74, 190)
HSLhsl(251, 47%, 52%)
HSVhsv(251, 61%, 75%)
CMYKcmyk(50%, 61.1%, 0%, 25.5%)
CIE-LABlab(39.66, 38.78, -58.30)
CIE-LCHlch(39.66, 70.02, 303.63°)
OKLaboklab(49.61% 0.0495 -0.1669)
OKLCHoklch(49.61% 0.174 286.5)
XYZxyz(16.4596, 11.0474, 49.9703)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4ABE #A9BE4A
analogous
#4A6FBE #5F4ABE #994ABE
triadic
#5F4ABE #BE5F4A #4ABE5F
tetradic
#5F4ABE #BE4A6F #A9BE4A #4ABE99
square
#5F4ABE #BE4A6F #A9BE4A #4ABE99
split-complementary
#5F4ABE #BE994A #6FBE4A
monochromatic
#322568 #473695 #5F4ABE #8777CE #AFA4DE

Accessibility & contrast

On white

6.54
#5F4ABE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5F4ABE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4ABE
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4ABE#FFFFFF#000000##FFFFFF
##5F4ABE1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#005ABC
Tritanopia (blue-blind)
#3D657D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f4abe;
/* rgb */ color: rgb(95, 74, 190);
/* oklch */ color: oklch(49.6% 0.174 286.5);
Tailwind
colors: {
  custom: {
    50: '#947dd2',
    500: '#5f4abe',
    950: '#000000',
  },
}
SCSS
$custom: #5f4abe;
$custom-light: #947dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4abe",
  "rgb": {
    "r": 95,
    "g": 74,
    "b": 190
  },
  "hsl": {
    "h": 250.862,
    "s": 47.154,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49611,
    "c": 0.1741,
    "h": 286.5
  },
  "luminance": 0.11048
}

Semantic roles & 50–950 ramp

primary
#5F4ABE
secondary
#C2CB98
accent
#D751BF
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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