#5B195F#5B195F

#5B195F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.131 H 325.5°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#5B195F
RGBrgb(91, 25, 95)
HSLhsl(297, 58%, 24%)
HSVhsv(297, 74%, 37%)
CMYKcmyk(4.2%, 73.7%, 0%, 62.7%)
CIE-LABlab(22.81, 39.53, -26.77)
CIE-LCHlch(22.81, 47.74, 325.89°)
OKLaboklab(35.17% 0.1081 -0.0744)
OKLCHoklch(35.17% 0.131 325.5)
XYZxyz(6.7274, 3.7461, 11.1930)
Luminance0.0375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B195F #1D5F19
analogous
#38195F #5B195F #5F1940
triadic
#5B195F #5F5B19 #195F5B
tetradic
#5B195F #5F3819 #1D5F19 #19405F
square
#5B195F #5F3819 #1D5F19 #19405F
split-complementary
#5B195F #405F19 #195F38
monochromatic
#170618 #2D0C2F #5B195F #89268F #B832C0

Accessibility & contrast

On white

12.01
#5B195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5B195F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B195F
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B195F#FFFFFF#000000##FFFFFF
##5B195F1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093161
Deuteranopia (green-blind)
#27395D
Tritanopia (blue-blind)
#5D243A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b195f;
/* rgb */ color: rgb(91, 25, 95);
/* oklch */ color: oklch(35.2% 0.131 325.5);
Tailwind
colors: {
  custom: {
    50: '#8c5d8d',
    500: '#5b195f',
    950: '#000000',
  },
}
SCSS
$custom: #5b195f;
$custom-light: #8c5d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b195f",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 296.571,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3517,
    "c": 0.13123,
    "h": 325.5
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

primary
#5B195F
secondary
#44953F
accent
#E2464F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B195F

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

Preview Lab → · Contrast checker → · Palette generator →

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