#5D1B8E#5D1B8E

#5D1B8E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.175 H 305.4°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#5D1B8E
RGBrgb(93, 27, 142)
HSLhsl(274, 68%, 33%)
HSVhsv(274, 81%, 56%)
CMYKcmyk(34.5%, 81%, 0%, 44.3%)
CIE-LABlab(26.92, 49.37, -50.16)
CIE-LCHlch(26.92, 70.38, 314.55°)
OKLaboklab(39.25% 0.1017 -0.1429)
OKLCHoklch(39.25% 0.175 305.4)
XYZxyz(9.7875, 5.0641, 26.0478)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B8E #4C8E1B
analogous
#241B8E #5D1B8E #8E1B85
triadic
#5D1B8E #8E5D1B #1B8E5D
tetradic
#5D1B8E #8E241B #4C8E1B #1B858E
square
#5D1B8E #8E241B #4C8E1B #1B858E
split-complementary
#5D1B8E #858E1B #1B8E24
monochromatic
#1A0727 #3B115B #5D1B8E #7F25C1 #9D47DC

Accessibility & contrast

On white

10.43
#5D1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5D1B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1B8E
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B8E#FFFFFF#000000##FFFFFF
##5D1B8E1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#543955
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d1b8e;
/* rgb */ color: rgb(93, 27, 142);
/* oklch */ color: oklch(39.2% 0.175 305.4);
Tailwind
colors: {
  custom: {
    50: '#9060b0',
    500: '#5d1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b8e;
$custom-light: #9060b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b8e",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 274.435,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39245,
    "c": 0.17537,
    "h": 305.4
  },
  "luminance": 0.05064
}

Semantic roles & 50–950 ramp

primary
#5D1B8E
secondary
#7ABE47
accent
#EB3D87
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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