#5E30AA#5E30AA

#5E30AA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.183 H 295.0°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5E30AA
RGBrgb(94, 48, 170)
HSLhsl(263, 56%, 43%)
HSVhsv(263, 72%, 67%)
CMYKcmyk(44.7%, 71.8%, 0%, 33.3%)
CIE-LABlab(32.69, 47.26, -57.80)
CIE-LCHlch(32.69, 74.66, 309.27°)
OKLaboklab(44.07% 0.0773 -0.1655)
OKLCHoklch(44.07% 0.183 295)
XYZxyz(12.9268, 7.3955, 38.7688)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E30AA #7CAA30
analogous
#303FAA #5E30AA #9B30AA
triadic
#5E30AA #AA5E30 #30AA5E
tetradic
#5E30AA #AA303F #7CAA30 #30AA9B
square
#5E30AA #AA303F #7CAA30 #30AA9B
split-complementary
#5E30AA #AA9B30 #3FAA30
monochromatic
#29154B #44237A #5E30AA #7C4BCC #9F7BDA

Accessibility & contrast

On white

8.47
#5E30AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5E30AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E30AA
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E30AA#FFFFFF#000000##FFFFFF
##5E30AA1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#494F6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e30aa;
/* rgb */ color: rgb(94, 48, 170);
/* oklch */ color: oklch(44.1% 0.183 295.0);
Tailwind
colors: {
  custom: {
    50: '#936cc4',
    500: '#5e30aa',
    950: '#000000',
  },
}
SCSS
$custom: #5e30aa;
$custom-light: #936cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e30aa",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 262.623,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44071,
    "c": 0.18262,
    "h": 295
  },
  "luminance": 0.07396
}

Semantic roles & 50–950 ramp

primary
#5E30AA
secondary
#A5C274
accent
#DF49A6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E30AA

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

Preview Lab → · Contrast checker → · Palette generator →

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