#5B1895#5B1895

#5B1895 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.3% C 0.185 H 302.4°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#5B1895
RGBrgb(91, 24, 149)
HSLhsl(272, 72%, 34%)
HSVhsv(272, 84%, 58%)
CMYKcmyk(38.9%, 83.9%, 0%, 41.6%)
CIE-LABlab(26.87, 51.77, -54.58)
CIE-LCHlch(26.87, 75.22, 313.49°)
OKLaboklab(39.34% 0.0988 -0.1559)
OKLCHoklch(39.34% 0.185 302.4)
XYZxyz(10.0645, 5.0473, 28.8719)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1895 #529518
analogous
#1D1895 #5B1895 #951891
triadic
#5B1895 #955B18 #18955B
tetradic
#5B1895 #951D18 #529518 #189195
square
#5B1895 #951D18 #529518 #189195
split-complementary
#5B1895 #919518 #18951D
monochromatic
#1B072C #3B1060 #5B1895 #7B20CA #9946E1

Accessibility & contrast

On white

10.45
#5B1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5B1895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1895
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1895#FFFFFF#000000##FFFFFF
##5B18951.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#4E3C58
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b1895;
/* rgb */ color: rgb(91, 24, 149);
/* oklch */ color: oklch(39.3% 0.185 302.4);
Tailwind
colors: {
  custom: {
    50: '#905fb5',
    500: '#5b1895',
    950: '#000000',
  },
}
SCSS
$custom: #5b1895;
$custom-light: #905fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1895",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 272.16,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3934,
    "c": 0.18459,
    "h": 302.4
  },
  "luminance": 0.05047
}

Semantic roles & 50–950 ramp

primary
#5B1895
secondary
#80C246
accent
#EF398D
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1895

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

Preview Lab → · Contrast checker → · Palette generator →

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