#5D1E95#5D1E95

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

Color values

HEX#5D1E95
RGBrgb(93, 30, 149)
HSLhsl(272, 66%, 35%)
HSVhsv(272, 80%, 58%)
CMYKcmyk(37.6%, 79.9%, 0%, 41.6%)
CIE-LABlab(27.91, 49.88, -52.86)
CIE-LCHlch(27.91, 72.68, 313.34°)
OKLaboklab(40.13% 0.0972 -0.1508)
OKLCHoklch(40.13% 0.179 302.8)
XYZxyz(10.4020, 5.4256, 28.9272)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1E95 #56951E
analogous
#221E95 #5D1E95 #951E91
triadic
#5D1E95 #955D1E #1E955D
tetradic
#5D1E95 #95221E #56951E #1E9195
square
#5D1E95 #95221E #56951E #1E9195
split-complementary
#5D1E95 #91951E #1E9522
monochromatic
#1D092F #3D1462 #5D1E95 #7D28C8 #9B51DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D1E95#FFFFFF#000000##FFFFFF
##5D1E951.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)
#004198
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#513E59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d1e95;
/* rgb */ color: rgb(93, 30, 149);
/* oklch */ color: oklch(40.1% 0.179 302.8);
Tailwind
colors: {
  custom: {
    50: '#9162b5',
    500: '#5d1e95',
    950: '#000000',
  },
}
SCSS
$custom: #5d1e95;
$custom-light: #9162b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1e95",
  "rgb": {
    "r": 93,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 271.765,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40128,
    "c": 0.17946,
    "h": 302.8
  },
  "luminance": 0.05426
}

Semantic roles & 50–950 ramp

primary
#5D1E95
secondary
#84BF50
accent
#E93E8F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1E95

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

Preview Lab → · Contrast checker → · Palette generator →

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