#5B4AAF#5B4AAF

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

Color values

HEX#5B4AAF
RGBrgb(91, 74, 175)
HSLhsl(250, 41%, 49%)
HSVhsv(250, 58%, 69%)
CMYKcmyk(48%, 57.7%, 0%, 31.4%)
CIE-LABlab(38.23, 33.42, -51.81)
CIE-LCHlch(38.23, 61.65, 302.82°)
OKLaboklab(48.13% 0.0447 -0.1479)
OKLCHoklch(48.13% 0.155 286.8)
XYZxyz(14.4988, 10.2162, 41.7571)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4AAF #9EAF4A
analogous
#4A6CAF #5B4AAF #8E4AAF
triadic
#5B4AAF #AF5B4A #4AAF5B
tetradic
#5B4AAF #AF4A6C #9EAF4A #4AAF8E
square
#5B4AAF #AF4A6C #9EAF4A #4AAF8E
split-complementary
#5B4AAF #AF8E4A #6CAF4A
monochromatic
#2E2659 #453884 #5B4AAF #8073C4 #A79ED6

Accessibility & contrast

On white

6.90
#5B4AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5B4AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4AAF
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4AAF#FFFFFF#000000##FFFFFF
##5B4AAF1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#015DB2
Deuteranopia (green-blind)
#0057AD
Tritanopia (blue-blind)
#3F6175
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b4aaf;
/* rgb */ color: rgb(91, 74, 175);
/* oklch */ color: oklch(48.1% 0.155 286.8);
Tailwind
colors: {
  custom: {
    50: '#907dc8',
    500: '#5b4aaf',
    950: '#000000',
  },
}
SCSS
$custom: #5b4aaf;
$custom-light: #907dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4aaf",
  "rgb": {
    "r": 91,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 250.099,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48131,
    "c": 0.15455,
    "h": 286.8
  },
  "luminance": 0.10217
}

Semantic roles & 50–950 ramp

primary
#5B4AAF
secondary
#BAC292
accent
#D057BC
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5B4AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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