#5E46AC#5E46AC

#5E46AC is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.5% C 0.156 H 290.0°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#5E46AC
RGBrgb(94, 70, 172)
HSLhsl(254, 42%, 47%)
HSVhsv(254, 59%, 67%)
CMYKcmyk(45.3%, 59.3%, 0%, 32.5%)
CIE-LABlab(37.37, 35.59, -51.40)
CIE-LCHlch(37.37, 62.52, 304.70°)
OKLaboklab(47.5% 0.0534 -0.1467)
OKLCHoklch(47.5% 0.156 290)
XYZxyz(14.2506, 9.7381, 40.1505)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E46AC #94AC46
analogous
#4661AC #5E46AC #9146AC
triadic
#5E46AC #AC5E46 #46AC5E
tetradic
#5E46AC #AC4661 #94AC46 #46AC91
square
#5E46AC #AC4661 #94AC46 #46AC91
split-complementary
#5E46AC #AC9146 #61AC46
monochromatic
#2E2355 #463481 #5E46AC #816CC3 #A698D5

Accessibility & contrast

On white

7.12
#5E46AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5E46AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E46AC
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E46AC#FFFFFF#000000##FFFFFF
##5E46AC1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#0056AA
Tritanopia (blue-blind)
#465D72
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e46ac;
/* rgb */ color: rgb(94, 70, 172);
/* oklch */ color: oklch(47.5% 0.156 290.0);
Tailwind
colors: {
  custom: {
    50: '#917ac5',
    500: '#5e46ac',
    950: '#000000',
  },
}
SCSS
$custom: #5e46ac;
$custom-light: #917ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e46ac",
  "rgb": {
    "r": 94,
    "g": 70,
    "b": 172
  },
  "hsl": {
    "h": 254.118,
    "s": 42.149,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47499,
    "c": 0.15607,
    "h": 290
  },
  "luminance": 0.09739
}

Semantic roles & 50–950 ramp

primary
#5E46AC
secondary
#B5C18D
accent
#D256B5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5E46AC

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

Preview Lab → · Contrast checker → · Palette generator →

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