#5D1B95#5D1B95

#5D1B95 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.182 H 303.1°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#5D1B95
RGBrgb(93, 27, 149)
HSLhsl(272, 69%, 35%)
HSVhsv(272, 82%, 58%)
CMYKcmyk(37.6%, 81.9%, 0%, 41.6%)
CIE-LABlab(27.52, 51.02, -53.50)
CIE-LCHlch(27.52, 73.93, 313.64°)
OKLaboklab(39.85% 0.0996 -0.1527)
OKLCHoklch(39.85% 0.182 303.1)
XYZxyz(10.3297, 5.2809, 28.9031)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B95 #53951B
analogous
#201B95 #5D1B95 #951B90
triadic
#5D1B95 #955D1B #1B955D
tetradic
#5D1B95 #95201B #53951B #1B9095
square
#5D1B95 #95201B #53951B #1B9095
split-complementary
#5D1B95 #90951B #1B9520
monochromatic
#1C082D #3D1261 #5D1B95 #7D24C9 #9B4CDF

Accessibility & contrast

On white

10.21
#5D1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5D1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1B95
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B95#FFFFFF#000000##FFFFFF
##5D1B951.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#513D59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d1b95;
/* rgb */ color: rgb(93, 27, 149);
/* oklch */ color: oklch(39.9% 0.182 303.1);
Tailwind
colors: {
  custom: {
    50: '#9161b5',
    500: '#5d1b95',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b95;
$custom-light: #9161b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b95",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 272.459,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39853,
    "c": 0.18234,
    "h": 303.1
  },
  "luminance": 0.05281
}

Semantic roles & 50–950 ramp

primary
#5D1B95
secondary
#81C14B
accent
#EC3C8D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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