#5B46AC#5B46AC

#5B46AC is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.2% C 0.156 H 288.4°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5B46AC
RGBrgb(91, 70, 172)
HSLhsl(252, 42%, 47%)
HSVhsv(252, 59%, 67%)
CMYKcmyk(47.1%, 59.3%, 0%, 32.5%)
CIE-LABlab(37.08, 34.93, -51.88)
CIE-LCHlch(37.08, 62.55, 303.95°)
OKLaboklab(47.22% 0.0493 -0.1482)
OKLCHoklch(47.22% 0.156 288.4)
XYZxyz(13.9488, 9.5825, 40.1364)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46AC #97AC46
analogous
#4664AC #5B46AC #8E46AC
triadic
#5B46AC #AC5B46 #46AC5B
tetradic
#5B46AC #AC4664 #97AC46 #46AC8E
square
#5B46AC #AC4664 #97AC46 #46AC8E
split-complementary
#5B46AC #AC8E46 #64AC46
monochromatic
#2D2355 #443481 #5B46AC #7E6CC3 #A498D5

Accessibility & contrast

On white

7.20
#5B46AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5B46AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B46AC
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B46AC#FFFFFF#000000##FFFFFF
##5B46AC1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#415D72
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b46ac;
/* rgb */ color: rgb(91, 70, 172);
/* oklch */ color: oklch(47.2% 0.156 288.4);
Tailwind
colors: {
  custom: {
    50: '#8f7ac5',
    500: '#5b46ac',
    950: '#000000',
  },
}
SCSS
$custom: #5b46ac;
$custom-light: #8f7ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46ac",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 172
  },
  "hsl": {
    "h": 252.353,
    "s": 42.149,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47221,
    "c": 0.15616,
    "h": 288.4
  },
  "luminance": 0.09583
}

Semantic roles & 50–950 ramp

primary
#5B46AC
secondary
#B6C18D
accent
#D256B8
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5B46AC

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

Preview Lab → · Contrast checker → · Palette generator →

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