#5D30A3#5D30A3

#5D30A3 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.174 H 296.2°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5D30A3
RGBrgb(93, 48, 163)
HSLhsl(263, 55%, 41%)
HSVhsv(263, 71%, 64%)
CMYKcmyk(42.9%, 70.6%, 0%, 36.1%)
CIE-LABlab(32.00, 45.19, -54.73)
CIE-LCHlch(32.00, 70.97, 309.55°)
OKLaboklab(43.38% 0.0771 -0.1564)
OKLCHoklch(43.38% 0.174 296.2)
XYZxyz(12.1803, 7.0851, 35.3691)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30A3 #76A330
analogous
#303DA3 #5D30A3 #9730A3
triadic
#5D30A3 #A35D30 #30A35D
tetradic
#5D30A3 #A3303D #76A330 #30A397
square
#5D30A3 #A3303D #76A330 #30A397
split-complementary
#5D30A3 #A39730 #3DA330
monochromatic
#271444 #422274 #5D30A3 #7A47C9 #9C77D7

Accessibility & contrast

On white

8.69
#5D30A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5D30A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30A3
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30A3#FFFFFF#000000##FFFFFF
##5D30A31.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#004AA1
Tritanopia (blue-blind)
#4B4C66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d30a3;
/* rgb */ color: rgb(93, 48, 163);
/* oklch */ color: oklch(43.4% 0.174 296.2);
Tailwind
colors: {
  custom: {
    50: '#916cbf',
    500: '#5d30a3',
    950: '#000000',
  },
}
SCSS
$custom: #5d30a3;
$custom-light: #916cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30a3",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 163
  },
  "hsl": {
    "h": 263.478,
    "s": 54.502,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43375,
    "c": 0.17442,
    "h": 296.2
  },
  "luminance": 0.07085
}

Semantic roles & 50–950 ramp

primary
#5D30A3
secondary
#A0BF70
accent
#DE4AA4
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D30A3

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

Preview Lab → · Contrast checker → · Palette generator →

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