#5A45AF#5A45AF

#5A45AF is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.2% C 0.162 H 287.7°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5A45AF
RGBrgb(90, 69, 175)
HSLhsl(252, 43%, 48%)
HSVhsv(252, 61%, 69%)
CMYKcmyk(48.6%, 60.6%, 0%, 31.4%)
CIE-LABlab(36.97, 36.22, -53.84)
CIE-LCHlch(36.97, 64.89, 303.93°)
OKLaboklab(47.19% 0.049 -0.154)
OKLCHoklch(47.19% 0.162 287.7)
XYZxyz(14.0802, 9.5244, 41.6456)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A45AF #9AAF45
analogous
#4565AF #5A45AF #8F45AF
triadic
#5A45AF #AF5A45 #45AF5A
tetradic
#5A45AF #AF4565 #9AAF45 #45AF8F
square
#5A45AF #AF4565 #9AAF45 #45AF8F
split-complementary
#5A45AF #AF8F45 #65AF45
monochromatic
#2D2257 #433483 #5A45AF #7E6CC5 #A498D6

Accessibility & contrast

On white

7.23
#5A45AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5A45AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A45AF
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A45AF#FFFFFF#000000##FFFFFF
##5A45AF1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#3D5D73
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a45af;
/* rgb */ color: rgb(90, 69, 175);
/* oklch */ color: oklch(47.2% 0.162 287.7);
Tailwind
colors: {
  custom: {
    50: '#8f79c8',
    500: '#5a45af',
    950: '#000000',
  },
}
SCSS
$custom: #5a45af;
$custom-light: #8f79c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a45af",
  "rgb": {
    "r": 90,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 251.887,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47188,
    "c": 0.16158,
    "h": 287.7
  },
  "luminance": 0.09525
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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