#5D1C98#5D1C98

#5D1C98 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.184 H 302.1°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#5D1C98
RGBrgb(93, 28, 152)
HSLhsl(271, 69%, 35%)
HSVhsv(271, 82%, 60%)
CMYKcmyk(38.8%, 81.6%, 0%, 40.4%)
CIE-LABlab(27.91, 51.36, -54.70)
CIE-LCHlch(27.91, 75.04, 313.20°)
OKLaboklab(40.21% 0.098 -0.1562)
OKLCHoklch(40.21% 0.184 302.1)
XYZxyz(10.5956, 5.4246, 30.1885)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1C98 #57981C
analogous
#1F1C98 #5D1C98 #981C95
triadic
#5D1C98 #985D1C #1C985D
tetradic
#5D1C98 #981F1C #57981C #1C9598
square
#5D1C98 #981F1C #57981C #1C9598
split-complementary
#5D1C98 #95981C #1C981F
monochromatic
#1E0931 #3D1264 #5D1C98 #7D26CC #9B50DF

Accessibility & contrast

On white

10.07
#5D1C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1C98
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1C98#FFFFFF#000000##FFFFFF
##5D1C981.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1c98;
/* rgb */ color: rgb(93, 28, 152);
/* oklch */ color: oklch(40.2% 0.184 302.1);
Tailwind
colors: {
  custom: {
    50: '#9161b7',
    500: '#5d1c98',
    950: '#000000',
  },
}
SCSS
$custom: #5d1c98;
$custom-light: #9161b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1c98",
  "rgb": {
    "r": 93,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 271.452,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40207,
    "c": 0.18441,
    "h": 302.1
  },
  "luminance": 0.05425
}

Semantic roles & 50–950 ramp

primary
#5D1C98
secondary
#85C14E
accent
#EC3C90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1C98

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

Preview Lab → · Contrast checker → · Palette generator →

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