#5B135F#5B135F

#5B135F is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.139 H 325.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#5B135F
RGBrgb(91, 19, 95)
HSLhsl(297, 67%, 22%)
HSVhsv(297, 80%, 37%)
CMYKcmyk(4.2%, 80%, 0%, 62.7%)
CIE-LABlab(22.00, 41.83, -28.06)
CIE-LCHlch(22.00, 50.37, 326.15°)
OKLaboklab(34.59% 0.1145 -0.0781)
OKLCHoklch(34.59% 0.139 325.7)
XYZxyz(6.6127, 3.5166, 11.1547)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B135F #175F13
analogous
#35135F #5B135F #5F133D
triadic
#5B135F #5F5B13 #135F5B
tetradic
#5B135F #5F3513 #175F13 #133D5F
square
#5B135F #5F3513 #175F13 #133D5F
split-complementary
#5B135F #3D5F13 #135F35
monochromatic
#18051A #2A092C #5B135F #8C1D92 #BD27C5

Accessibility & contrast

On white

12.33
#5B135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5B135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B135F
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B135F#FFFFFF#000000##FFFFFF
##5B135F1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#24385D
Tritanopia (blue-blind)
#5D2038
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b135f;
/* rgb */ color: rgb(91, 19, 95);
/* oklch */ color: oklch(34.6% 0.139 325.7);
Tailwind
colors: {
  custom: {
    50: '#8c5a8d',
    500: '#5b135f',
    950: '#000000',
  },
}
SCSS
$custom: #5b135f;
$custom-light: #8c5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b135f",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 296.842,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34591,
    "c": 0.13861,
    "h": 325.7
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#5B135F
secondary
#3C9737
accent
#EA3E47
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B135F

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

Preview Lab → · Contrast checker → · Palette generator →

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