#5D30B6#5D30B6

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

Color values

HEX#5D30B6
RGBrgb(93, 48, 182)
HSLhsl(260, 58%, 45%)
HSVhsv(260, 74%, 71%)
CMYKcmyk(48.9%, 73.6%, 0%, 28.6%)
CIE-LABlab(33.60, 50.34, -63.48)
CIE-LCHlch(33.60, 81.01, 308.42°)
OKLaboklab(45.01% 0.0732 -0.1821)
OKLCHoklch(45.01% 0.196 291.9)
XYZxyz(14.0123, 7.8179, 45.0176)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30B6 #89B630
analogous
#3046B6 #5D30B6 #A030B6
triadic
#5D30B6 #B65D30 #30B65D
tetradic
#5D30B6 #B63046 #89B630 #30B6A0
square
#5D30B6 #B63046 #89B630 #30B6A0
split-complementary
#5D30B6 #B6A030 #46B630
monochromatic
#2C1655 #442386 #5D30B6 #7D52D1 #A182DE

Accessibility & contrast

On white

8.19
#5D30B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5D30B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30B6
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30B6#FFFFFF#000000##FFFFFF
##5D30B61.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d30b6;
/* rgb */ color: rgb(93, 48, 182);
/* oklch */ color: oklch(45.0% 0.196 291.9);
Tailwind
colors: {
  custom: {
    50: '#936dcd',
    500: '#5d30b6',
    950: '#000000',
  },
}
SCSS
$custom: #5d30b6;
$custom-light: #936dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30b6",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 260.149,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45006,
    "c": 0.19629,
    "h": 291.9
  },
  "luminance": 0.07818
}

Semantic roles & 50–950 ramp

primary
#5D30B6
secondary
#AEC77B
accent
#E146AD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D30B6

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

Preview Lab → · Contrast checker → · Palette generator →

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