#5D30A1#5D30A1

#5D30A1 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.172 H 296.8°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5D30A1
RGBrgb(93, 48, 161)
HSLhsl(264, 54%, 41%)
HSVhsv(264, 70%, 63%)
CMYKcmyk(42.2%, 70.2%, 0%, 36.9%)
CIE-LABlab(31.84, 44.65, -53.78)
CIE-LCHlch(31.84, 69.90, 309.70°)
OKLaboklab(43.21% 0.0775 -0.1537)
OKLCHoklch(43.21% 0.172 296.8)
XYZxyz(12.0025, 7.0140, 34.4328)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30A1 #74A130
analogous
#303BA1 #5D30A1 #9530A1
triadic
#5D30A1 #A15D30 #30A15D
tetradic
#5D30A1 #A1303B #74A130 #30A195
square
#5D30A1 #A1303B #74A130 #30A195
split-complementary
#5D30A1 #A19530 #3BA130
monochromatic
#271443 #422272 #5D30A1 #7A46C8 #9C75D6

Accessibility & contrast

On white

8.74
#5D30A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5D30A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30A1
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30A1#FFFFFF#000000##FFFFFF
##5D30A11.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#4C4C65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d30a1;
/* rgb */ color: rgb(93, 48, 161);
/* oklch */ color: oklch(43.2% 0.172 296.8);
Tailwind
colors: {
  custom: {
    50: '#916cbe',
    500: '#5d30a1',
    950: '#000000',
  },
}
SCSS
$custom: #5d30a1;
$custom-light: #916cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30a1",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 161
  },
  "hsl": {
    "h": 263.894,
    "s": 54.067,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43209,
    "c": 0.17209,
    "h": 296.8
  },
  "luminance": 0.07014
}

Semantic roles & 50–950 ramp

primary
#5D30A1
secondary
#9EBE6F
accent
#DD4AA3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D30A1

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

Preview Lab → · Contrast checker → · Palette generator →

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