#5D2EB1#5D2EB1

#5D2EB1 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.193 H 293.2°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5D2EB1
RGBrgb(93, 46, 177)
HSLhsl(262, 59%, 44%)
HSVhsv(262, 74%, 69%)
CMYKcmyk(47.5%, 74%, 0%, 30.6%)
CIE-LABlab(32.82, 49.96, -61.78)
CIE-LCHlch(32.82, 79.45, 308.96°)
OKLaboklab(44.32% 0.0761 -0.1771)
OKLCHoklch(44.32% 0.193 293.2)
XYZxyz(13.4248, 7.4550, 42.3181)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2EB1 #82B12E
analogous
#2E40B1 #5D2EB1 #9E2EB1
triadic
#5D2EB1 #B15D2E #2EB15D
tetradic
#5D2EB1 #B12E40 #82B12E #2EB19E
square
#5D2EB1 #B12E40 #82B12E #2EB19E
split-complementary
#5D2EB1 #B19E2E #40B12E
monochromatic
#2A1550 #432180 #5D2EB1 #7B4CD0 #9F7CDD

Accessibility & contrast

On white

8.43
#5D2EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5D2EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2EB1
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2EB1#FFFFFF#000000##FFFFFF
##5D2EB11.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004BAE
Tritanopia (blue-blind)
#43516D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5d2eb1;
/* rgb */ color: rgb(93, 46, 177);
/* oklch */ color: oklch(44.3% 0.193 293.2);
Tailwind
colors: {
  custom: {
    50: '#936bc9',
    500: '#5d2eb1',
    950: '#000000',
  },
}
SCSS
$custom: #5d2eb1;
$custom-light: #936bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2eb1",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 261.527,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44321,
    "c": 0.1928,
    "h": 293.2
  },
  "luminance": 0.07455
}

Semantic roles & 50–950 ramp

primary
#5D2EB1
secondary
#A9C675
accent
#E246AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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