#5B169F#5B169F

#5B169F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.196 H 299.5°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5B169F
RGBrgb(91, 22, 159)
HSLhsl(270, 76%, 35%)
HSVhsv(270, 86%, 62%)
CMYKcmyk(42.8%, 86.2%, 0%, 37.6%)
CIE-LABlab(27.58, 54.78, -59.54)
CIE-LCHlch(27.58, 80.91, 312.61°)
OKLaboklab(40.11% 0.0966 -0.1705)
OKLCHoklch(40.11% 0.196 299.5)
XYZxyz(10.8577, 5.3010, 33.2453)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B169F #5A9F16
analogous
#16169F #5B169F #9F169E
triadic
#5B169F #9F5B16 #169F5B
tetradic
#5B169F #9F1616 #5A9F16 #169E9F
square
#5B169F #9F1616 #5A9F16 #169E9F
split-complementary
#5B169F #9E9F16 #169F16
monochromatic
#1D0733 #3C0F69 #5B169F #7A1DD5 #984AE6

Accessibility & contrast

On white

10.19
#5B169F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5B169F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B169F
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B169F#FFFFFF#000000##FFFFFF
##5B169F1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#4A3F5E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b169f;
/* rgb */ color: rgb(91, 22, 159);
/* oklch */ color: oklch(40.1% 0.196 299.5);
Tailwind
colors: {
  custom: {
    50: '#915fbc',
    500: '#5b169f',
    950: '#000000',
  },
}
SCSS
$custom: #5b169f;
$custom-light: #915fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b169f",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 159
  },
  "hsl": {
    "h": 270.219,
    "s": 75.691,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40111,
    "c": 0.19595,
    "h": 299.5
  },
  "luminance": 0.05301
}

Semantic roles & 50–950 ramp

primary
#5B169F
secondary
#88C74A
accent
#F23693
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5B169F

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

Preview Lab → · Contrast checker → · Palette generator →

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