#5D30B1#5D30B1

#5D30B1 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.191 H 293.0°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5D30B1
RGBrgb(93, 48, 177)
HSLhsl(261, 57%, 44%)
HSVhsv(261, 73%, 69%)
CMYKcmyk(47.5%, 72.9%, 0%, 30.6%)
CIE-LABlab(33.17, 48.98, -61.21)
CIE-LCHlch(33.17, 78.40, 308.66°)
OKLaboklab(44.57% 0.0743 -0.1755)
OKLCHoklch(44.57% 0.191 293)
XYZxyz(13.5048, 7.6149, 42.3447)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30B1 #84B130
analogous
#3044B1 #5D30B1 #9E30B1
triadic
#5D30B1 #B15D30 #30B15D
tetradic
#5D30B1 #B13044 #84B130 #30B19E
square
#5D30B1 #B13044 #84B130 #30B19E
split-complementary
#5D30B1 #B19E30 #44B130
monochromatic
#2A1651 #442381 #5D30B1 #7C4FCF #A07FDC

Accessibility & contrast

On white

8.32
#5D30B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5D30B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30B1
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30B1#FFFFFF#000000##FFFFFF
##5D30B11.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#004CAE
Tritanopia (blue-blind)
#43526E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d30b1;
/* rgb */ color: rgb(93, 48, 177);
/* oklch */ color: oklch(44.6% 0.191 293.0);
Tailwind
colors: {
  custom: {
    50: '#936dc9',
    500: '#5d30b1',
    950: '#000000',
  },
}
SCSS
$custom: #5d30b1;
$custom-light: #936dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30b1",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 177
  },
  "hsl": {
    "h": 260.93,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44566,
    "c": 0.19059,
    "h": 293
  },
  "luminance": 0.07615
}

Semantic roles & 50–950 ramp

primary
#5D30B1
secondary
#AAC578
accent
#E147AB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D30B1

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

Preview Lab → · Contrast checker → · Palette generator →

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