#5B46AF#5B46AF

#5B46AF is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.4% C 0.160 H 287.9°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5B46AF
RGBrgb(91, 70, 175)
HSLhsl(252, 43%, 48%)
HSVhsv(252, 60%, 69%)
CMYKcmyk(48%, 60%, 0%, 31.4%)
CIE-LABlab(37.30, 35.83, -53.32)
CIE-LCHlch(37.30, 64.24, 303.90°)
OKLaboklab(47.45% 0.0492 -0.1524)
OKLCHoklch(47.45% 0.16 287.9)
XYZxyz(14.2402, 9.6990, 41.6709)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46AF #9AAF46
analogous
#4665AF #5B46AF #8F46AF
triadic
#5B46AF #AF5B46 #46AF5B
tetradic
#5B46AF #AF4665 #9AAF46 #46AF8F
square
#5B46AF #AF4665 #9AAF46 #46AF8F
split-complementary
#5B46AF #AF8F46 #65AF46
monochromatic
#2E2358 #443583 #5B46AF #7F6DC5 #A599D6

Accessibility & contrast

On white

7.14
#5B46AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5B46AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B46AF
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B46AF#FFFFFF#000000##FFFFFF
##5B46AF1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#3F5E74
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b46af;
/* rgb */ color: rgb(91, 70, 175);
/* oklch */ color: oklch(47.4% 0.160 287.9);
Tailwind
colors: {
  custom: {
    50: '#907ac8',
    500: '#5b46af',
    950: '#000000',
  },
}
SCSS
$custom: #5b46af;
$custom-light: #907ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46af",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 175
  },
  "hsl": {
    "h": 252,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47446,
    "c": 0.16014,
    "h": 287.9
  },
  "luminance": 0.097
}

Semantic roles & 50–950 ramp

primary
#5B46AF
secondary
#B8C28E
accent
#D355BA
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5B46AF

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

Preview Lab → · Contrast checker → · Palette generator →

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