#5D31B0#5D31B0

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

Color values

HEX#5D31B0
RGBrgb(93, 49, 176)
HSLhsl(261, 56%, 44%)
HSVhsv(261, 72%, 69%)
CMYKcmyk(47.2%, 72.2%, 0%, 31%)
CIE-LABlab(33.26, 48.21, -60.47)
CIE-LCHlch(33.26, 77.33, 308.56°)
OKLaboklab(44.61% 0.0736 -0.1733)
OKLCHoklch(44.61% 0.188 293)
XYZxyz(13.4468, 7.6579, 41.8355)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31B0 #84B031
analogous
#3145B0 #5D31B0 #9D31B0
triadic
#5D31B0 #B05D31 #31B05D
tetradic
#5D31B0 #B03145 #84B031 #31B09D
square
#5D31B0 #B03145 #84B031 #31B09D
split-complementary
#5D31B0 #B09D31 #45B031
monochromatic
#2A1650 #442480 #5D31B0 #7C50CE #A080DC

Accessibility & contrast

On white

8.30
#5D31B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5D31B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31B0
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31B0#FFFFFF#000000##FFFFFF
##5D31B01.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B4
Deuteranopia (green-blind)
#004CAE
Tritanopia (blue-blind)
#44526D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d31b0;
/* rgb */ color: rgb(93, 49, 176);
/* oklch */ color: oklch(44.6% 0.188 293.0);
Tailwind
colors: {
  custom: {
    50: '#936dc9',
    500: '#5d31b0',
    950: '#000000',
  },
}
SCSS
$custom: #5d31b0;
$custom-light: #936dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31b0",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 260.787,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44605,
    "c": 0.1883,
    "h": 293
  },
  "luminance": 0.07658
}

Semantic roles & 50–950 ramp

primary
#5D31B0
secondary
#AAC578
accent
#E048AB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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