#5E4AC2#5E4AC2

#5E4AC2 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 49.8% C 0.179 H 285.5°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5E4AC2
RGBrgb(94, 74, 194)
HSLhsl(250, 50%, 53%)
HSVhsv(250, 62%, 76%)
CMYKcmyk(51.5%, 61.9%, 0%, 23.9%)
CIE-LABlab(39.87, 39.79, -60.31)
CIE-LCHlch(39.87, 72.25, 303.42°)
OKLaboklab(49.84% 0.0479 -0.1728)
OKLCHoklch(49.84% 0.179 285.5)
XYZxyz(16.7996, 11.1714, 52.2996)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4AC2 #AEC24A
analogous
#4A72C2 #5E4AC2 #9A4AC2
triadic
#5E4AC2 #C25E4A #4AC25E
tetradic
#5E4AC2 #C24A72 #AEC24A #4AC29A
square
#5E4AC2 #C24A72 #AEC24A #4AC29A
split-complementary
#5E4AC2 #C29A4A #72C24A
monochromatic
#31256D #45349B #5E4AC2 #8778D1 #AFA6E1

Accessibility & contrast

On white

6.49
#5E4AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5E4AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4AC2
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4AC2#FFFFFF#000000##FFFFFF
##5E4AC21.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#37677F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e4ac2;
/* rgb */ color: rgb(94, 74, 194);
/* oklch */ color: oklch(49.8% 0.179 285.5);
Tailwind
colors: {
  custom: {
    50: '#947dd5',
    500: '#5e4ac2',
    950: '#000000',
  },
}
SCSS
$custom: #5e4ac2;
$custom-light: #947dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4ac2",
  "rgb": {
    "r": 94,
    "g": 74,
    "b": 194
  },
  "hsl": {
    "h": 250,
    "s": 49.587,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49835,
    "c": 0.17936,
    "h": 285.5
  },
  "luminance": 0.11172
}

Semantic roles & 50–950 ramp

primary
#5E4AC2
secondary
#C5CE9A
accent
#D94FC2
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5E4AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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