#5B188B#5B188B

#5B188B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.175 H 305.7°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5B188B
RGBrgb(91, 24, 139)
HSLhsl(275, 71%, 32%)
HSVhsv(275, 83%, 55%)
CMYKcmyk(34.5%, 82.7%, 0%, 45.5%)
CIE-LABlab(25.99, 49.43, -49.83)
CIE-LCHlch(25.99, 70.19, 314.77°)
OKLaboklab(38.45% 0.1019 -0.142)
OKLCHoklch(38.45% 0.175 305.7)
XYZxyz(9.3002, 4.7416, 24.8464)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B188B #488B18
analogous
#22188B #5B188B #8B1881
triadic
#5B188B #8B5B18 #188B5B
tetradic
#5B188B #8B2218 #488B18 #18818B
square
#5B188B #8B2218 #488B18 #18818B
split-complementary
#5B188B #818B18 #188B22
monochromatic
#170623 #390F57 #5B188B #7D21BF #9C3FDE

Accessibility & contrast

On white

10.78
#5B188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5B188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B188B
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B188B#FFFFFF#000000##FFFFFF
##5B188B1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b188b;
/* rgb */ color: rgb(91, 24, 139);
/* oklch */ color: oklch(38.5% 0.175 305.7);
Tailwind
colors: {
  custom: {
    50: '#8f5eae',
    500: '#5b188b',
    950: '#000000',
  },
}
SCSS
$custom: #5b188b;
$custom-light: #8f5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b188b",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 274.957,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38454,
    "c": 0.17478,
    "h": 305.7
  },
  "luminance": 0.04741
}

Semantic roles & 50–950 ramp

primary
#5B188B
secondary
#75BE40
accent
#ED3A85
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B188B

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

Preview Lab → · Contrast checker → · Palette generator →

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