#5D1D98#5D1D98

#5D1D98 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.183 H 302.0°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#5D1D98
RGBrgb(93, 29, 152)
HSLhsl(271, 68%, 35%)
HSVhsv(271, 81%, 60%)
CMYKcmyk(38.8%, 80.9%, 0%, 40.4%)
CIE-LABlab(28.04, 50.99, -54.49)
CIE-LCHlch(28.04, 74.63, 313.10°)
OKLaboklab(40.3% 0.0972 -0.1556)
OKLCHoklch(40.3% 0.183 302)
XYZxyz(10.6197, 5.4728, 30.1966)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1D98 #58981D
analogous
#201D98 #5D1D98 #981D95
triadic
#5D1D98 #985D1D #1D985D
tetradic
#5D1D98 #98201D #58981D #1D9598
square
#5D1D98 #98201D #58981D #1D9598
split-complementary
#5D1D98 #95981D #1D9820
monochromatic
#1E0931 #3E1365 #5D1D98 #7C27CB #9B52DE

Accessibility & contrast

On white

10.03
#5D1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5D1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1D98
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1D98#FFFFFF#000000##FFFFFF
##5D1D981.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#503F5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d1d98;
/* rgb */ color: rgb(93, 29, 152);
/* oklch */ color: oklch(40.3% 0.183 302.0);
Tailwind
colors: {
  custom: {
    50: '#9162b7',
    500: '#5d1d98',
    950: '#000000',
  },
}
SCSS
$custom: #5d1d98;
$custom-light: #9162b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1d98",
  "rgb": {
    "r": 93,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 271.22,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40297,
    "c": 0.18347,
    "h": 302
  },
  "luminance": 0.05473
}

Semantic roles & 50–950 ramp

primary
#5D1D98
secondary
#86C150
accent
#EB3D90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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