#5D1F93#5D1F93

#5D1F93 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.176 H 303.3°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#5D1F93
RGBrgb(93, 31, 147)
HSLhsl(272, 65%, 35%)
HSVhsv(272, 79%, 58%)
CMYKcmyk(36.7%, 78.9%, 0%, 42.4%)
CIE-LABlab(27.88, 49.00, -51.68)
CIE-LCHlch(27.88, 71.21, 313.47°)
OKLaboklab(40.05% 0.0969 -0.1474)
OKLCHoklch(40.05% 0.176 303.3)
XYZxyz(10.2694, 5.4137, 28.1020)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F93 #55931F
analogous
#231F93 #5D1F93 #931F8F
triadic
#5D1F93 #935D1F #1F935D
tetradic
#5D1F93 #93231F #55931F #1F8F93
square
#5D1F93 #93231F #55931F #1F8F93
split-complementary
#5D1F93 #8F931F #1F9323
monochromatic
#1D0A2E #3D1460 #5D1F93 #7D2AC6 #9B52DA

Accessibility & contrast

On white

10.08
#5D1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5D1F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F93
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F93#FFFFFF#000000##FFFFFF
##5D1F931.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004196
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#523D58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d1f93;
/* rgb */ color: rgb(93, 31, 147);
/* oklch */ color: oklch(40.1% 0.176 303.3);
Tailwind
colors: {
  custom: {
    50: '#9062b4',
    500: '#5d1f93',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f93;
$custom-light: #9062b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f93",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 272.069,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40052,
    "c": 0.17639,
    "h": 303.3
  },
  "luminance": 0.05414
}

Semantic roles & 50–950 ramp

primary
#5D1F93
secondary
#83BE50
accent
#E8408E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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