#5B138F#5B138F

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

Color values

HEX#5B138F
RGBrgb(91, 19, 143)
HSLhsl(275, 77%, 32%)
HSVhsv(275, 87%, 56%)
CMYKcmyk(36.4%, 86.7%, 0%, 43.9%)
CIE-LABlab(25.78, 51.98, -52.65)
CIE-LCHlch(25.78, 73.98, 314.63°)
OKLaboklab(38.42% 0.1042 -0.1502)
OKLCHoklch(38.42% 0.183 304.7)
XYZxyz(9.5040, 4.6731, 26.3826)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B138F #478F13
analogous
#1D138F #5B138F #8F1385
triadic
#5B138F #8F5B13 #138F5B
tetradic
#5B138F #8F1D13 #478F13 #13858F
square
#5B138F #8F1D13 #478F13 #13858F
split-complementary
#5B138F #858F13 #138F1D
monochromatic
#160523 #390C59 #5B138F #7D1AC5 #9C38E5

Accessibility & contrast

On white

10.85
#5B138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B138F
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B138F#FFFFFF#000000##FFFFFF
##5B138F1.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#513754
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b138f;
/* rgb */ color: rgb(91, 19, 143);
/* oklch */ color: oklch(38.4% 0.183 304.7);
Tailwind
colors: {
  custom: {
    50: '#8f5db1',
    500: '#5b138f',
    950: '#000000',
  },
}
SCSS
$custom: #5b138f;
$custom-light: #8f5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b138f",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 274.839,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38422,
    "c": 0.18281,
    "h": 304.7
  },
  "luminance": 0.04673
}

Semantic roles & 50–950 ramp

primary
#5B138F
secondary
#74C33B
accent
#F33585
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B138F

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

Preview Lab → · Contrast checker → · Palette generator →

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