#5E4FA2#5E4FA2

#5E4FA2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 48.4% C 0.129 H 289.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5E4FA2
RGBrgb(94, 79, 162)
HSLhsl(251, 34%, 47%)
HSVhsv(251, 51%, 64%)
CMYKcmyk(42%, 51.2%, 0%, 36.5%)
CIE-LABlab(38.86, 27.15, -43.04)
CIE-LCHlch(38.86, 50.89, 302.24°)
OKLaboklab(48.4% 0.0419 -0.1221)
OKLCHoklch(48.4% 0.129 289)
XYZxyz(13.9318, 10.5798, 35.4835)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4FA2 #93A24F
analogous
#4F6AA2 #5E4FA2 #874FA2
triadic
#5E4FA2 #A25E4F #4FA25E
tetradic
#5E4FA2 #A24F6A #93A24F #4FA287
square
#5E4FA2 #A24F6A #93A24F #4FA287
split-complementary
#5E4FA2 #A2874F #6AA24F
monochromatic
#2E2750 #463B79 #5E4FA2 #8073BB #A69CCF

Accessibility & contrast

On white

6.74
#5E4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5E4FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4FA2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4FA2#FFFFFF#000000##FFFFFF
##5E4FA21.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5DA5
Deuteranopia (green-blind)
#2D59A0
Tritanopia (blue-blind)
#4B6071
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5e4fa2;
/* rgb */ color: rgb(94, 79, 162);
/* oklch */ color: oklch(48.4% 0.129 289.0);
Tailwind
colors: {
  custom: {
    50: '#9080be',
    500: '#5e4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5e4fa2;
$custom-light: #9080be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4fa2",
  "rgb": {
    "r": 94,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 250.843,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.48397,
    "c": 0.12906,
    "h": 289
  },
  "luminance": 0.1058
}

Semantic roles & 50–950 ramp

primary
#5E4FA2
secondary
#B4BC91
accent
#CB5DB7
background
#F9F7FB
surface
#F1EEF7
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5E4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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