#5E30B6#5E30B6

#5E30B6 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.196 H 292.4°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#5E30B6
RGBrgb(94, 48, 182)
HSLhsl(261, 58%, 45%)
HSVhsv(261, 74%, 71%)
CMYKcmyk(48.4%, 73.6%, 0%, 28.6%)
CIE-LABlab(33.71, 50.50, -63.29)
CIE-LCHlch(33.71, 80.97, 308.59°)
OKLaboklab(45.11% 0.0746 -0.1816)
OKLCHoklch(45.11% 0.196 292.4)
XYZxyz(14.1142, 7.8705, 45.0224)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E30B6 #88B630
analogous
#3045B6 #5E30B6 #A130B6
triadic
#5E30B6 #B65E30 #30B65E
tetradic
#5E30B6 #B63045 #88B630 #30B6A1
square
#5E30B6 #B63045 #88B630 #30B6A1
split-complementary
#5E30B6 #B6A130 #45B630
monochromatic
#2C1655 #452386 #5E30B6 #7E52D1 #A282DE

Accessibility & contrast

On white

8.16
#5E30B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E30B6
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E30B6#FFFFFF#000000##FFFFFF
##5E30B61.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#425470
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5e30b6;
/* rgb */ color: rgb(94, 48, 182);
/* oklch */ color: oklch(45.1% 0.196 292.4);
Tailwind
colors: {
  custom: {
    50: '#946dcd',
    500: '#5e30b6',
    950: '#000000',
  },
}
SCSS
$custom: #5e30b6;
$custom-light: #946dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e30b6",
  "rgb": {
    "r": 94,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 260.597,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45109,
    "c": 0.19631,
    "h": 292.4
  },
  "luminance": 0.07871
}

Semantic roles & 50–950 ramp

primary
#5E30B6
secondary
#ADC77B
accent
#E146AC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5E30B6

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

Preview Lab → · Contrast checker → · Palette generator →

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