#5B1985#5B1985

#5B1985 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.168 H 307.7°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5B1985
RGBrgb(91, 25, 133)
HSLhsl(277, 68%, 31%)
HSVhsv(277, 81%, 52%)
CMYKcmyk(31.6%, 81.2%, 0%, 47.8%)
CIE-LABlab(25.60, 47.68, -46.70)
CIE-LCHlch(25.60, 66.74, 315.60°)
OKLaboklab(38.03% 0.1028 -0.1328)
OKLCHoklch(38.03% 0.168 307.7)
XYZxyz(8.8948, 4.6130, 22.6076)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1985 #438519
analogous
#251985 #5B1985 #851979
triadic
#5B1985 #855B19 #19855B
tetradic
#5B1985 #852519 #438519 #197985
square
#5B1985 #852519 #438519 #197985
split-complementary
#5B1985 #798519 #198525
monochromatic
#15061E #380F51 #5B1985 #7E23B9 #9E3EDB

Accessibility & contrast

On white

10.92
#5B1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5B1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1985
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1985#FFFFFF#000000##FFFFFF
##5B19851.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#54354F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b1985;
/* rgb */ color: rgb(91, 25, 133);
/* oklch */ color: oklch(38.0% 0.168 307.7);
Tailwind
colors: {
  custom: {
    50: '#8e5ea9',
    500: '#5b1985',
    950: '#000000',
  },
}
SCSS
$custom: #5b1985;
$custom-light: #8e5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1985",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 276.667,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38029,
    "c": 0.16791,
    "h": 307.7
  },
  "luminance": 0.04613
}

Semantic roles & 50–950 ramp

primary
#5B1985
secondary
#70B941
accent
#EB3D80
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1985

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

Preview Lab → · Contrast checker → · Palette generator →

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