#5D1F94#5D1F94

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

Color values

HEX#5D1F94
RGBrgb(93, 31, 148)
HSLhsl(272, 65%, 35%)
HSVhsv(272, 79%, 58%)
CMYKcmyk(37.2%, 79.1%, 0%, 42%)
CIE-LABlab(27.97, 49.24, -52.16)
CIE-LCHlch(27.97, 71.73, 313.35°)
OKLaboklab(40.14% 0.0967 -0.1488)
OKLCHoklch(40.14% 0.177 303)
XYZxyz(10.3482, 5.4452, 28.5171)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F94 #56941F
analogous
#231F94 #5D1F94 #941F90
triadic
#5D1F94 #945D1F #1F945D
tetradic
#5D1F94 #94231F #56941F #1F9094
square
#5D1F94 #94231F #56941F #1F9094
split-complementary
#5D1F94 #90941F #1F9423
monochromatic
#1D0A2F #3D1461 #5D1F94 #7D2AC7 #9B53DB

Accessibility & contrast

On white

10.05
#5D1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1F94
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F94#FFFFFF#000000##FFFFFF
##5D1F941.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#523E59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d1f94;
/* rgb */ color: rgb(93, 31, 148);
/* oklch */ color: oklch(40.1% 0.177 303.0);
Tailwind
colors: {
  custom: {
    50: '#9162b4',
    500: '#5d1f94',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f94;
$custom-light: #9162b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f94",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 271.795,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40138,
    "c": 0.17743,
    "h": 303
  },
  "luminance": 0.05445
}

Semantic roles & 50–950 ramp

primary
#5D1F94
secondary
#84BE51
accent
#E83F8F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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