#5B125A#5B125A

#5B125A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.135 H 328.6°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#5B125A
RGBrgb(91, 18, 90)
HSLhsl(301, 67%, 21%)
HSVhsv(301, 80%, 36%)
CMYKcmyk(0%, 80.2%, 1.1%, 64.3%)
CIE-LABlab(21.56, 41.25, -25.44)
CIE-LCHlch(21.56, 48.47, 328.34°)
OKLaboklab(34.17% 0.1157 -0.0705)
OKLCHoklch(34.17% 0.135 328.6)
XYZxyz(6.3761, 3.3954, 9.9904)
Luminance0.0340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B125A #125B13
analogous
#38125B #5B125A #5B1236
triadic
#5B125A #5A5B12 #125A5B
tetradic
#5B125A #5B3812 #125B13 #12365B
square
#5B125A #5B3812 #125B13 #12365B
split-complementary
#5B125A #365B12 #125B38
monochromatic
#1A0519 #280827 #5B125A #8E1C8D #C126BF

Accessibility & contrast

On white

12.51
#5B125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5B125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B125A
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B125A#FFFFFF#000000##FFFFFF
##5B125A1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042E5C
Deuteranopia (green-blind)
#273758
Tritanopia (blue-blind)
#5E1D35
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b125a;
/* rgb */ color: rgb(91, 18, 90);
/* oklch */ color: oklch(34.2% 0.135 328.6);
Tailwind
colors: {
  custom: {
    50: '#8c5989',
    500: '#5b125a',
    950: '#000000',
  },
}
SCSS
$custom: #5b125a;
$custom-light: #8c5989;
$custom-dark: #000000;
JSON
{
  "hex": "#5b125a",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 300.822,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34173,
    "c": 0.13542,
    "h": 328.6
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#5B125A
secondary
#359337
accent
#EA403E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B125A

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

Preview Lab → · Contrast checker → · Palette generator →

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