#5E3FA2#5E3FA2

#5E3FA2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.6% C 0.153 H 293.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5E3FA2
RGBrgb(94, 63, 162)
HSLhsl(259, 44%, 44%)
HSVhsv(259, 61%, 64%)
CMYKcmyk(42%, 61.1%, 0%, 36.5%)
CIE-LABlab(35.09, 36.83, -49.11)
CIE-LCHlch(35.09, 61.38, 306.87°)
OKLaboklab(45.61% 0.062 -0.1399)
OKLCHoklch(45.61% 0.153 293.9)
XYZxyz(12.9134, 8.5430, 35.1440)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E3FA2 #83A23F
analogous
#3F52A2 #5E3FA2 #903FA2
triadic
#5E3FA2 #A25E3F #3FA25E
tetradic
#5E3FA2 #A23F52 #83A23F #3FA290
square
#5E3FA2 #A23F52 #83A23F #3FA290
split-complementary
#5E3FA2 #A2903F #52A23F
monochromatic
#2B1D4A #442E76 #5E3FA2 #7D5EC0 #A08AD1

Accessibility & contrast

On white

7.75
#5E3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5E3FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E3FA2
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E3FA2#FFFFFF#000000##FFFFFF
##5E3FA21.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#0551A0
Tritanopia (blue-blind)
#4C556A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e3fa2;
/* rgb */ color: rgb(94, 63, 162);
/* oklch */ color: oklch(45.6% 0.153 293.9);
Tailwind
colors: {
  custom: {
    50: '#9175be',
    500: '#5e3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5e3fa2;
$custom-light: #9175be;
$custom-dark: #000000;
JSON
{
  "hex": "#5e3fa2",
  "rgb": {
    "r": 94,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 258.788,
    "s": 44,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45606,
    "c": 0.15303,
    "h": 293.9
  },
  "luminance": 0.08543
}

Semantic roles & 50–950 ramp

primary
#5E3FA2
secondary
#AABC81
accent
#D454AC
background
#F9F7FB
surface
#F1EDF7
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5E3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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