#5D34AF#5D34AF

#5D34AF is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.9% C 0.184 H 292.7°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5D34AF
RGBrgb(93, 52, 175)
HSLhsl(260, 54%, 45%)
HSVhsv(260, 70%, 69%)
CMYKcmyk(46.9%, 70.3%, 0%, 31.4%)
CIE-LABlab(33.73, 46.39, -59.11)
CIE-LCHlch(33.73, 75.14, 308.13°)
OKLaboklab(44.91% 0.071 -0.1693)
OKLCHoklch(44.91% 0.184 292.7)
XYZxyz(13.4779, 7.8778, 41.3596)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34AF #86AF34
analogous
#3449AF #5D34AF #9B34AF
triadic
#5D34AF #AF5D34 #34AF5D
tetradic
#5D34AF #AF3449 #86AF34 #34AF9B
square
#5D34AF #AF3449 #86AF34 #34AF9B
split-complementary
#5D34AF #AF9B34 #49AF34
monochromatic
#2B1851 #442680 #5D34AF #7C54CC #A083DA

Accessibility & contrast

On white

8.15
#5D34AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5D34AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34AF
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34AF#FFFFFF#000000##FFFFFF
##5D34AF1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#44536E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d34af;
/* rgb */ color: rgb(93, 52, 175);
/* oklch */ color: oklch(44.9% 0.184 292.7);
Tailwind
colors: {
  custom: {
    50: '#926fc8',
    500: '#5d34af',
    950: '#000000',
  },
}
SCSS
$custom: #5d34af;
$custom-light: #926fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34af",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 260,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44911,
    "c": 0.18362,
    "h": 292.7
  },
  "luminance": 0.07878
}

Semantic roles & 50–950 ramp

primary
#5D34AF
secondary
#ABC47B
accent
#DE4AAC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D34AF

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

Preview Lab → · Contrast checker → · Palette generator →

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