#5A46BC#5A46BC

#5A46BC is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.4% C 0.177 H 285.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5A46BC
RGBrgb(90, 70, 188)
HSLhsl(250, 47%, 51%)
HSVhsv(250, 63%, 74%)
CMYKcmyk(52.1%, 62.8%, 0%, 26.3%)
CIE-LABlab(38.17, 39.56, -59.57)
CIE-LCHlch(38.17, 71.51, 303.59°)
OKLaboklab(48.37% 0.0471 -0.1708)
OKLCHoklch(48.37% 0.177 285.4)
XYZxyz(15.4810, 10.1840, 48.7172)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46BC #A8BC46
analogous
#466DBC #5A46BC #9546BC
triadic
#5A46BC #BC5A46 #46BC5A
tetradic
#5A46BC #BC466D #A8BC46 #46BC95
square
#5A46BC #BC466D #A8BC46 #46BC95
split-complementary
#5A46BC #BC9546 #6DBC46
monochromatic
#2F2464 #443490 #5A46BC #8273CC #AAA0DD

Accessibility & contrast

On white

6.91
#5A46BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A46BC
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46BC#FFFFFF#000000##FFFFFF
##5A46BC1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#34627A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a46bc;
/* rgb */ color: rgb(90, 70, 188);
/* oklch */ color: oklch(48.4% 0.177 285.4);
Tailwind
colors: {
  custom: {
    50: '#917ad1',
    500: '#5a46bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a46bc;
$custom-light: #917ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46bc",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 188
  },
  "hsl": {
    "h": 250.169,
    "s": 46.825,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48367,
    "c": 0.17721,
    "h": 285.4
  },
  "luminance": 0.10185
}

Semantic roles & 50–950 ramp

primary
#5A46BC
secondary
#C0C995
accent
#D651C0
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5A46BC

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

Preview Lab → · Contrast checker → · Palette generator →

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