#5B45AF#5B45AF

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

Color values

HEX#5B45AF
RGBrgb(91, 69, 175)
HSLhsl(252, 43%, 48%)
HSVhsv(252, 61%, 69%)
CMYKcmyk(48%, 60.6%, 0%, 31.4%)
CIE-LABlab(37.07, 36.43, -53.69)
CIE-LCHlch(37.07, 64.88, 304.16°)
OKLaboklab(47.28% 0.0504 -0.1535)
OKLCHoklch(47.28% 0.162 288.2)
XYZxyz(14.1781, 9.5749, 41.6502)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B45AF #99AF45
analogous
#4564AF #5B45AF #9045AF
triadic
#5B45AF #AF5B45 #45AF5B
tetradic
#5B45AF #AF4564 #99AF45 #45AF90
square
#5B45AF #AF4564 #99AF45 #45AF90
split-complementary
#5B45AF #AF9045 #64AF45
monochromatic
#2D2257 #443483 #5B45AF #7F6CC5 #A598D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B45AF#FFFFFF#000000##FFFFFF
##5B45AF1.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)
#005AB2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#3F5D73
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b45af;
/* rgb */ color: rgb(91, 69, 175);
/* oklch */ color: oklch(47.3% 0.162 288.2);
Tailwind
colors: {
  custom: {
    50: '#9079c8',
    500: '#5b45af',
    950: '#000000',
  },
}
SCSS
$custom: #5b45af;
$custom-light: #9079c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b45af",
  "rgb": {
    "r": 91,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 252.453,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47279,
    "c": 0.16153,
    "h": 288.2
  },
  "luminance": 0.09576
}

Semantic roles & 50–950 ramp

primary
#5B45AF
secondary
#B7C28D
accent
#D355B9
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5B45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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