#5B138D#5B138D

#5B138D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.181 H 305.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5B138D
RGBrgb(91, 19, 141)
HSLhsl(275, 76%, 31%)
HSVhsv(275, 87%, 55%)
CMYKcmyk(35.5%, 86.5%, 0%, 44.7%)
CIE-LABlab(25.60, 51.52, -51.70)
CIE-LCHlch(25.60, 72.99, 314.90°)
OKLaboklab(38.24% 0.1049 -0.1474)
OKLCHoklch(38.24% 0.181 305.4)
XYZxyz(9.3539, 4.6130, 25.5918)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B138D #458D13
analogous
#1E138D #5B138D #8D1382
triadic
#5B138D #8D5B13 #138D5B
tetradic
#5B138D #8D1E13 #458D13 #13828D
square
#5B138D #8D1E13 #458D13 #13828D
split-complementary
#5B138D #828D13 #138D1E
monochromatic
#150421 #380C57 #5B138D #7E1AC3 #9D36E4

Accessibility & contrast

On white

10.92
#5B138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5B138D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B138D
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B138D#FFFFFF#000000##FFFFFF
##5B138D1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#513653
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b138d;
/* rgb */ color: rgb(91, 19, 141);
/* oklch */ color: oklch(38.2% 0.181 305.4);
Tailwind
colors: {
  custom: {
    50: '#8f5daf',
    500: '#5b138d',
    950: '#000000',
  },
}
SCSS
$custom: #5b138d;
$custom-light: #8f5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b138d",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 275.41,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38243,
    "c": 0.18092,
    "h": 305.4
  },
  "luminance": 0.04613
}

Semantic roles & 50–950 ramp

primary
#5B138D
secondary
#72C13B
accent
#F33583
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B138D

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

Preview Lab → · Contrast checker → · Palette generator →

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