#5B197B#5B197B

#5B197B is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.158 H 311.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#5B197B
RGBrgb(91, 25, 123)
HSLhsl(280, 66%, 29%)
HSVhsv(280, 80%, 48%)
CMYKcmyk(26%, 79.7%, 0%, 51.8%)
CIE-LABlab(24.80, 45.42, -41.70)
CIE-LCHlch(24.80, 61.66, 317.44°)
OKLaboklab(37.21% 0.1051 -0.1181)
OKLCHoklch(37.21% 0.158 311.7)
XYZxyz(8.2365, 4.3497, 19.1407)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B197B #397B19
analogous
#2A197B #5B197B #7B196A
triadic
#5B197B #7B5B19 #197B5B
tetradic
#5B197B #7B2A19 #397B19 #196A7B
square
#5B197B #7B2A19 #397B19 #196A7B
split-complementary
#5B197B #6A7B19 #197B2A
monochromatic
#130519 #350F48 #5B197B #8123AE #A338D7

Accessibility & contrast

On white

11.23
#5B197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B197B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B197B#FFFFFF#000000##FFFFFF
##5B197B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#053C79
Tritanopia (blue-blind)
#573049
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b197b;
/* rgb */ color: rgb(91, 25, 123);
/* oklch */ color: oklch(37.2% 0.158 311.7);
Tailwind
colors: {
  custom: {
    50: '#8d5ea2',
    500: '#5b197b',
    950: '#000000',
  },
}
SCSS
$custom: #5b197b;
$custom-light: #8d5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b197b",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 280.408,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3721,
    "c": 0.15807,
    "h": 311.7
  },
  "luminance": 0.04349
}

Semantic roles & 50–950 ramp

primary
#5B197B
secondary
#65AF40
accent
#E93F76
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B197B

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

Preview Lab → · Contrast checker → · Palette generator →

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