#5E46BC#5E46BC

#5E46BC is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.7% C 0.177 H 287.3°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5E46BC
RGBrgb(94, 70, 188)
HSLhsl(252, 47%, 51%)
HSVhsv(252, 63%, 74%)
CMYKcmyk(50%, 62.8%, 0%, 26.3%)
CIE-LABlab(38.53, 40.33, -58.97)
CIE-LCHlch(38.53, 71.44, 304.37°)
OKLaboklab(48.72% 0.0525 -0.1689)
OKLCHoklch(48.72% 0.177 287.3)
XYZxyz(15.8807, 10.3901, 48.7359)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E46BC #A4BC46
analogous
#4669BC #5E46BC #9946BC
triadic
#5E46BC #BC5E46 #46BC5E
tetradic
#5E46BC #BC4669 #A4BC46 #46BC99
square
#5E46BC #BC4669 #A4BC46 #46BC99
split-complementary
#5E46BC #BC9946 #69BC46
monochromatic
#312464 #473490 #5E46BC #8573CC #ACA0DD

Accessibility & contrast

On white

6.82
#5E46BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5E46BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E46BC
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E46BC#FFFFFF#000000##FFFFFF
##5E46BC1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#3D627A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5e46bc;
/* rgb */ color: rgb(94, 70, 188);
/* oklch */ color: oklch(48.7% 0.177 287.3);
Tailwind
colors: {
  custom: {
    50: '#937bd1',
    500: '#5e46bc',
    950: '#000000',
  },
}
SCSS
$custom: #5e46bc;
$custom-light: #937bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e46bc",
  "rgb": {
    "r": 94,
    "g": 70,
    "b": 188
  },
  "hsl": {
    "h": 252.203,
    "s": 46.825,
    "l": 50.588
  },
  "oklch": {
    "l": 0.4872,
    "c": 0.17688,
    "h": 287.3
  },
  "luminance": 0.10391
}

Semantic roles & 50–950 ramp

primary
#5E46BC
secondary
#BEC995
accent
#D651BB
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5E46BC

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

Preview Lab → · Contrast checker → · Palette generator →

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