#5F4AAA#5F4AAA

#5F4AAA is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.1% C 0.148 H 289.8°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#5F4AAA
RGBrgb(95, 74, 170)
HSLhsl(253, 39%, 48%)
HSVhsv(253, 56%, 67%)
CMYKcmyk(44.1%, 56.5%, 0%, 33.3%)
CIE-LABlab(38.26, 32.82, -48.78)
CIE-LCHlch(38.26, 58.79, 303.94°)
OKLaboklab(48.13% 0.0499 -0.1389)
OKLCHoklch(48.13% 0.148 289.8)
XYZxyz(14.4218, 10.2322, 39.2376)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4AAA #95AA4A
analogous
#4A65AA #5F4AAA #8F4AAA
triadic
#5F4AAA #AA5F4A #4AAA5F
tetradic
#5F4AAA #AA4A65 #95AA4A #4AAA8F
square
#5F4AAA #AA4A65 #95AA4A #4AAA8F
split-complementary
#5F4AAA #AA8F4A #65AA4A
monochromatic
#2F2555 #47377F #5F4AAA #8270C1 #A79BD3

Accessibility & contrast

On white

6.89
#5F4AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5F4AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4AAA
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4AAA#FFFFFF#000000##FFFFFF
##5F4AAA1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145CAD
Deuteranopia (green-blind)
#1858A8
Tritanopia (blue-blind)
#495F73
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f4aaa;
/* rgb */ color: rgb(95, 74, 170);
/* oklch */ color: oklch(48.1% 0.148 289.8);
Tailwind
colors: {
  custom: {
    50: '#917dc4',
    500: '#5f4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5f4aaa;
$custom-light: #917dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4aaa",
  "rgb": {
    "r": 95,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 253.125,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48133,
    "c": 0.14761,
    "h": 289.8
  },
  "luminance": 0.10233
}

Semantic roles & 50–950 ramp

primary
#5F4AAA
secondary
#B5C090
accent
#CF59B5
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5F4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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