#5B45AB#5B45AB

#5B45AB is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.0% C 0.156 H 288.9°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5B45AB
RGBrgb(91, 69, 171)
HSLhsl(253, 43%, 47%)
HSVhsv(253, 60%, 67%)
CMYKcmyk(46.8%, 59.6%, 0%, 32.9%)
CIE-LABlab(36.78, 35.23, -51.77)
CIE-LCHlch(36.78, 62.63, 304.24°)
OKLaboklab(46.98% 0.0505 -0.1478)
OKLCHoklch(46.98% 0.156 288.9)
XYZxyz(13.7911, 9.4201, 39.6118)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45AB #95AB45
analogous
#4562AB #5B45AB #8E45AB
triadic
#5B45AB #AB5B45 #45AB5B
tetradic
#5B45AB #AB4562 #95AB45 #45AB8E
square
#5B45AB #AB4562 #95AB45 #45AB8E
split-complementary
#5B45AB #AB8E45 #62AB45
monochromatic
#2D2254 #44337F #5B45AB #7D6AC3 #A396D5

Accessibility & contrast

On white

7.28
#5B45AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5B45AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B45AB
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B45AB#FFFFFF#000000##FFFFFF
##5B45AB1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#425C71
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b45ab;
/* rgb */ color: rgb(91, 69, 171);
/* oklch */ color: oklch(47.0% 0.156 288.9);
Tailwind
colors: {
  custom: {
    50: '#8f79c5',
    500: '#5b45ab',
    950: '#000000',
  },
}
SCSS
$custom: #5b45ab;
$custom-light: #8f79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45ab",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 252.941,
    "s": 42.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46977,
    "c": 0.15624,
    "h": 288.9
  },
  "luminance": 0.09421
}

Semantic roles & 50–950 ramp

primary
#5B45AB
secondary
#B5C08B
accent
#D256B7
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5B45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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