#5E30AC#5E30AC

#5E30AC is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.185 H 294.6°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#5E30AC
RGBrgb(94, 48, 172)
HSLhsl(262, 56%, 43%)
HSVhsv(262, 72%, 67%)
CMYKcmyk(45.3%, 72.1%, 0%, 32.5%)
CIE-LABlab(32.86, 47.79, -58.73)
CIE-LCHlch(32.86, 75.72, 309.14°)
OKLaboklab(44.24% 0.0769 -0.1682)
OKLCHoklch(44.24% 0.185 294.6)
XYZxyz(13.1174, 7.4718, 39.7728)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E30AC #7EAC30
analogous
#3040AC #5E30AC #9C30AC
triadic
#5E30AC #AC5E30 #30AC5E
tetradic
#5E30AC #AC3040 #7EAC30 #30AC9C
square
#5E30AC #AC3040 #7EAC30 #30AC9C
split-complementary
#5E30AC #AC9C30 #40AC30
monochromatic
#2A154C #44237C #5E30AC #7C4CCD #9F7CDA

Accessibility & contrast

On white

8.42
#5E30AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5E30AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E30AC
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E30AC#FFFFFF#000000##FFFFFF
##5E30AC1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#48506B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e30ac;
/* rgb */ color: rgb(94, 48, 172);
/* oklch */ color: oklch(44.2% 0.185 294.6);
Tailwind
colors: {
  custom: {
    50: '#936cc6',
    500: '#5e30ac',
    950: '#000000',
  },
}
SCSS
$custom: #5e30ac;
$custom-light: #936cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e30ac",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 172
  },
  "hsl": {
    "h": 262.258,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44241,
    "c": 0.18491,
    "h": 294.6
  },
  "luminance": 0.07472
}

Semantic roles & 50–950 ramp

primary
#5E30AC
secondary
#A6C375
accent
#E048A7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E30AC

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

Preview Lab → · Contrast checker → · Palette generator →

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