#5D30A5#5D30A5

#5D30A5 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.177 H 295.7°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5D30A5
RGBrgb(93, 48, 165)
HSLhsl(263, 55%, 42%)
HSVhsv(263, 71%, 65%)
CMYKcmyk(43.6%, 70.9%, 0%, 35.3%)
CIE-LABlab(32.16, 45.73, -55.67)
CIE-LCHlch(32.16, 72.04, 309.40°)
OKLaboklab(43.54% 0.0768 -0.1592)
OKLCHoklch(43.54% 0.177 295.7)
XYZxyz(12.3609, 7.1574, 36.3203)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30A5 #78A530
analogous
#303DA5 #5D30A5 #9830A5
triadic
#5D30A5 #A55D30 #30A55D
tetradic
#5D30A5 #A5303D #78A530 #30A598
square
#5D30A5 #A5303D #78A530 #30A598
split-complementary
#5D30A5 #A59830 #3DA530
monochromatic
#281446 #422276 #5D30A5 #7A48CA #9D78D8

Accessibility & contrast

On white

8.64
#5D30A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5D30A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30A5
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30A5#FFFFFF#000000##FFFFFF
##5D30A51.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#004AA3
Tritanopia (blue-blind)
#4A4D67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5d30a5;
/* rgb */ color: rgb(93, 48, 165);
/* oklch */ color: oklch(43.5% 0.177 295.7);
Tailwind
colors: {
  custom: {
    50: '#916cc1',
    500: '#5d30a5',
    950: '#000000',
  },
}
SCSS
$custom: #5d30a5;
$custom-light: #916cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30a5",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 263.077,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43541,
    "c": 0.17676,
    "h": 295.7
  },
  "luminance": 0.07158
}

Semantic roles & 50–950 ramp

primary
#5D30A5
secondary
#A2C071
accent
#DE4AA5
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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