#5E30B5#5E30B5

#5E30B5 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.195 H 292.6°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#5E30B5
RGBrgb(94, 48, 181)
HSLhsl(261, 58%, 45%)
HSVhsv(261, 73%, 71%)
CMYKcmyk(48.1%, 73.5%, 0%, 29%)
CIE-LABlab(33.62, 50.23, -62.84)
CIE-LCHlch(33.62, 80.45, 308.64°)
OKLaboklab(45.02% 0.0749 -0.1802)
OKLCHoklch(45.02% 0.195 292.6)
XYZxyz(14.0112, 7.8293, 44.4801)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E30B5 #87B530
analogous
#3044B5 #5E30B5 #A130B5
triadic
#5E30B5 #B55E30 #30B55E
tetradic
#5E30B5 #B53044 #87B530 #30B5A1
square
#5E30B5 #B53044 #87B530 #30B5A1
split-complementary
#5E30B5 #B5A130 #44B530
monochromatic
#2C1654 #452385 #5E30B5 #7D51D1 #A282DE

Accessibility & contrast

On white

8.18
#5E30B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5E30B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E30B5
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E30B5#FFFFFF#000000##FFFFFF
##5E30B51.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#435370
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5e30b5;
/* rgb */ color: rgb(94, 48, 181);
/* oklch */ color: oklch(45.0% 0.195 292.6);
Tailwind
colors: {
  custom: {
    50: '#946dcc',
    500: '#5e30b5',
    950: '#000000',
  },
}
SCSS
$custom: #5e30b5;
$custom-light: #946dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e30b5",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 260.752,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45021,
    "c": 0.19518,
    "h": 292.6
  },
  "luminance": 0.0783
}

Semantic roles & 50–950 ramp

primary
#5E30B5
secondary
#ACC77A
accent
#E146AC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5E30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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