#5D30A2#5D30A2

#5D30A2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.173 H 296.5°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5D30A2
RGBrgb(93, 48, 162)
HSLhsl(264, 54%, 41%)
HSVhsv(264, 70%, 64%)
CMYKcmyk(42.6%, 70.4%, 0%, 36.5%)
CIE-LABlab(31.92, 44.92, -54.25)
CIE-LCHlch(31.92, 70.43, 309.62°)
OKLaboklab(43.29% 0.0773 -0.155)
OKLCHoklch(43.29% 0.173 296.5)
XYZxyz(12.0910, 7.0494, 34.8991)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30A2 #75A230
analogous
#303CA2 #5D30A2 #9630A2
triadic
#5D30A2 #A25D30 #30A25D
tetradic
#5D30A2 #A2303C #75A230 #30A296
square
#5D30A2 #A2303C #75A230 #30A296
split-complementary
#5D30A2 #A29630 #3CA230
monochromatic
#271444 #422273 #5D30A2 #7A47C8 #9C76D6

Accessibility & contrast

On white

8.71
#5D30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5D30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30A2
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30A2#FFFFFF#000000##FFFFFF
##5D30A21.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#4B4C65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d30a2;
/* rgb */ color: rgb(93, 48, 162);
/* oklch */ color: oklch(43.3% 0.173 296.5);
Tailwind
colors: {
  custom: {
    50: '#916cbe',
    500: '#5d30a2',
    950: '#000000',
  },
}
SCSS
$custom: #5d30a2;
$custom-light: #916cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30a2",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 263.684,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43292,
    "c": 0.17326,
    "h": 296.5
  },
  "luminance": 0.0705
}

Semantic roles & 50–950 ramp

primary
#5D30A2
secondary
#9FBE6F
accent
#DE4AA3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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