#5B188A#5B188A

#5B188A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.174 H 306.0°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5B188A
RGBrgb(91, 24, 138)
HSLhsl(275, 70%, 32%)
HSVhsv(275, 83%, 54%)
CMYKcmyk(34.1%, 82.6%, 0%, 45.9%)
CIE-LABlab(25.90, 49.20, -49.34)
CIE-LCHlch(25.90, 69.68, 314.92°)
OKLaboklab(38.37% 0.1022 -0.1405)
OKLCHoklch(38.37% 0.174 306)
XYZxyz(9.2274, 4.7125, 24.4633)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B188A #478A18
analogous
#22188A #5B188A #8A1880
triadic
#5B188A #8A5B18 #188A5B
tetradic
#5B188A #8A2218 #478A18 #18808A
square
#5B188A #8A2218 #478A18 #18808A
split-complementary
#5B188A #808A18 #188A22
monochromatic
#160622 #390F56 #5B188A #7D21BE #9C3FDE

Accessibility & contrast

On white

10.81
#5B188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5B188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B188A
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B188A#FFFFFF#000000##FFFFFF
##5B188A1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#523752
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b188a;
/* rgb */ color: rgb(91, 24, 138);
/* oklch */ color: oklch(38.4% 0.174 306.0);
Tailwind
colors: {
  custom: {
    50: '#8f5ead',
    500: '#5b188a',
    950: '#000000',
  },
}
SCSS
$custom: #5b188a;
$custom-light: #8f5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5b188a",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 275.263,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38368,
    "c": 0.1738,
    "h": 306
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#5B188A
secondary
#74BD40
accent
#ED3B84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B188A

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

Preview Lab → · Contrast checker → · Palette generator →

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