#5D2EB3#5D2EB3

#5D2EB3 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.195 H 292.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5D2EB3
RGBrgb(93, 46, 179)
HSLhsl(261, 59%, 44%)
HSVhsv(261, 74%, 70%)
CMYKcmyk(48%, 74.3%, 0%, 29.8%)
CIE-LABlab(33.00, 50.49, -62.68)
CIE-LCHlch(33.00, 80.49, 308.85°)
OKLaboklab(44.5% 0.0756 -0.1798)
OKLCHoklch(44.5% 0.195 292.8)
XYZxyz(13.6256, 7.5354, 43.3756)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2EB3 #84B32E
analogous
#2E42B3 #5D2EB3 #A02EB3
triadic
#5D2EB3 #B35D2E #2EB35D
tetradic
#5D2EB3 #B32E42 #84B32E #2EB3A0
square
#5D2EB3 #B32E42 #84B32E #2EB3A0
split-complementary
#5D2EB3 #B3A02E #42B32E
monochromatic
#2A1552 #442182 #5D2EB3 #7C4DD1 #A07EDE

Accessibility & contrast

On white

8.38
#5D2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5D2EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2EB3
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2EB3#FFFFFF#000000##FFFFFF
##5D2EB31.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#42526E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d2eb3;
/* rgb */ color: rgb(93, 46, 179);
/* oklch */ color: oklch(44.5% 0.195 292.8);
Tailwind
colors: {
  custom: {
    50: '#936bcb',
    500: '#5d2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #5d2eb3;
$custom-light: #936bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2eb3",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 261.203,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44498,
    "c": 0.19506,
    "h": 292.8
  },
  "luminance": 0.07536
}

Semantic roles & 50–950 ramp

primary
#5D2EB3
secondary
#AAC676
accent
#E246AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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