#5E30AB#5E30AB

#5E30AB is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.184 H 294.8°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#5E30AB
RGBrgb(94, 48, 171)
HSLhsl(262, 56%, 43%)
HSVhsv(262, 72%, 67%)
CMYKcmyk(45%, 71.9%, 0%, 32.9%)
CIE-LABlab(32.77, 47.53, -58.27)
CIE-LCHlch(32.77, 75.19, 309.20°)
OKLaboklab(44.16% 0.0771 -0.1668)
OKLCHoklch(44.16% 0.184 294.8)
XYZxyz(13.0217, 7.4335, 39.2689)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E30AB #7DAB30
analogous
#3040AB #5E30AB #9B30AB
triadic
#5E30AB #AB5E30 #30AB5E
tetradic
#5E30AB #AB3040 #7DAB30 #30AB9B
square
#5E30AB #AB3040 #7DAB30 #30AB9B
split-complementary
#5E30AB #AB9B30 #40AB30
monochromatic
#29154B #44237B #5E30AB #7C4CCD #9F7BDA

Accessibility & contrast

On white

8.44
#5E30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E30AB
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E30AB#FFFFFF#000000##FFFFFF
##5E30AB1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#484F6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5e30ab;
/* rgb */ color: rgb(94, 48, 171);
/* oklch */ color: oklch(44.2% 0.184 294.8);
Tailwind
colors: {
  custom: {
    50: '#936cc5',
    500: '#5e30ab',
    950: '#000000',
  },
}
SCSS
$custom: #5e30ab;
$custom-light: #936cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e30ab",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 262.439,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44156,
    "c": 0.18376,
    "h": 294.8
  },
  "luminance": 0.07434
}

Semantic roles & 50–950 ramp

primary
#5E30AB
secondary
#A5C374
accent
#DF48A7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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