#5D34AB#5D34AB

#5D34AB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.6% C 0.179 H 293.6°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5D34AB
RGBrgb(93, 52, 171)
HSLhsl(261, 53%, 44%)
HSVhsv(261, 70%, 67%)
CMYKcmyk(45.6%, 69.6%, 0%, 32.9%)
CIE-LABlab(33.40, 45.29, -57.25)
CIE-LCHlch(33.40, 73.00, 308.34°)
OKLaboklab(44.58% 0.0717 -0.1639)
OKLCHoklch(44.58% 0.179 293.6)
XYZxyz(13.0909, 7.7230, 39.3211)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D34AB #82AB34
analogous
#3446AB #5D34AB #9834AB
triadic
#5D34AB #AB5D34 #34AB5D
tetradic
#5D34AB #AB3446 #82AB34 #34AB98
square
#5D34AB #AB3446 #82AB34 #34AB98
split-complementary
#5D34AB #AB9834 #46AB34
monochromatic
#2A174D #43267C #5D34AB #7B52CA #9F81D9

Accessibility & contrast

On white

8.25
#5D34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5D34AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D34AB
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D34AB#FFFFFF#000000##FFFFFF
##5D34AB1.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#46526B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d34ab;
/* rgb */ color: rgb(93, 52, 171);
/* oklch */ color: oklch(44.6% 0.179 293.6);
Tailwind
colors: {
  custom: {
    50: '#926fc5',
    500: '#5d34ab',
    950: '#000000',
  },
}
SCSS
$custom: #5d34ab;
$custom-light: #926fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d34ab",
  "rgb": {
    "r": 93,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 260.672,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44575,
    "c": 0.17889,
    "h": 293.6
  },
  "luminance": 0.07723
}

Semantic roles & 50–950 ramp

primary
#5D34AB
secondary
#A9C279
accent
#DD4BAB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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