#5A46BE#5A46BE

#5A46BE is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.5% C 0.180 H 285.1°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5A46BE
RGBrgb(90, 70, 190)
HSLhsl(250, 48%, 51%)
HSVhsv(250, 63%, 75%)
CMYKcmyk(52.6%, 63.2%, 0%, 25.5%)
CIE-LABlab(38.32, 40.17, -60.49)
CIE-LCHlch(38.32, 72.62, 303.59°)
OKLaboklab(48.53% 0.047 -0.1735)
OKLCHoklch(48.53% 0.18 285.1)
XYZxyz(15.6981, 10.2708, 49.8605)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46BE #AABE46
analogous
#466EBE #5A46BE #9646BE
triadic
#5A46BE #BE5A46 #46BE5A
tetradic
#5A46BE #BE466E #AABE46 #46BE96
square
#5A46BE #BE466E #AABE46 #46BE96
split-complementary
#5A46BE #BE9646 #6EBE46
monochromatic
#2F2466 #443493 #5A46BE #8273CE #ABA1DE

Accessibility & contrast

On white

6.88
#5A46BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5A46BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46BE
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46BE#FFFFFF#000000##FFFFFF
##5A46BE1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#0057BC
Tritanopia (blue-blind)
#32637B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a46be;
/* rgb */ color: rgb(90, 70, 190);
/* oklch */ color: oklch(48.5% 0.180 285.1);
Tailwind
colors: {
  custom: {
    50: '#917ad2',
    500: '#5a46be',
    950: '#000000',
  },
}
SCSS
$custom: #5a46be;
$custom-light: #917ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46be",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 190
  },
  "hsl": {
    "h": 250,
    "s": 48,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48527,
    "c": 0.17978,
    "h": 285.1
  },
  "luminance": 0.10272
}

Semantic roles & 50–950 ramp

primary
#5A46BE
secondary
#C2CA95
accent
#D850C1
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A46BE

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

Preview Lab → · Contrast checker → · Palette generator →

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