#5B138E#5B138E

#5B138E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.3% C 0.182 H 305.1°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5B138E
RGBrgb(91, 19, 142)
HSLhsl(275, 76%, 32%)
HSVhsv(275, 87%, 56%)
CMYKcmyk(35.9%, 86.6%, 0%, 44.3%)
CIE-LABlab(25.69, 51.75, -52.17)
CIE-LCHlch(25.69, 73.49, 314.77°)
OKLaboklab(38.33% 0.1045 -0.1488)
OKLCHoklch(38.33% 0.182 305.1)
XYZxyz(9.4286, 4.6429, 25.9854)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B138E #468E13
analogous
#1E138E #5B138E #8E1384
triadic
#5B138E #8E5B13 #138E5B
tetradic
#5B138E #8E1E13 #468E13 #13848E
square
#5B138E #8E1E13 #468E13 #13848E
split-complementary
#5B138E #848E13 #138E1E
monochromatic
#160522 #380C58 #5B138E #7E1AC4 #9C37E4

Accessibility & contrast

On white

10.89
#5B138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5B138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B138E
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B138E#FFFFFF#000000##FFFFFF
##5B138E1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#513753
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b138e;
/* rgb */ color: rgb(91, 19, 142);
/* oklch */ color: oklch(38.3% 0.182 305.1);
Tailwind
colors: {
  custom: {
    50: '#8f5db0',
    500: '#5b138e',
    950: '#000000',
  },
}
SCSS
$custom: #5b138e;
$custom-light: #8f5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b138e",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 275.122,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38333,
    "c": 0.18187,
    "h": 305.1
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

primary
#5B138E
secondary
#73C23B
accent
#F33584
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B138E

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

Preview Lab → · Contrast checker → · Palette generator →

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