#5B125B#5B125B

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

Color values

HEX#5B125B
RGBrgb(91, 18, 91)
HSLhsl(300, 67%, 21%)
HSVhsv(300, 80%, 36%)
CMYKcmyk(0%, 80.2%, 0%, 64.3%)
CIE-LABlab(21.63, 41.44, -26.01)
CIE-LCHlch(21.63, 48.92, 327.88°)
OKLaboklab(34.24% 0.1156 -0.0721)
OKLCHoklch(34.24% 0.136 328.1)
XYZxyz(6.4189, 3.4126, 10.2161)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B125B #125B12
analogous
#37125B #5B125B #5B1237
triadic
#5B125B #5B5B12 #125B5B
tetradic
#5B125B #5B3712 #125B12 #12375B
square
#5B125B #5B3712 #125B12 #12375B
split-complementary
#5B125B #375B12 #125B37
monochromatic
#1A051A #280828 #5B125B #8E1C8E #C126C1

Accessibility & contrast

On white

12.48
#5B125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B125B
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B125B#FFFFFF#000000##FFFFFF
##5B125B1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032E5D
Deuteranopia (green-blind)
#263759
Tritanopia (blue-blind)
#5E1E36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b125b;
/* rgb */ color: rgb(91, 18, 91);
/* oklch */ color: oklch(34.2% 0.136 328.1);
Tailwind
colors: {
  custom: {
    50: '#8c598a',
    500: '#5b125b',
    950: '#000000',
  },
}
SCSS
$custom: #5b125b;
$custom-light: #8c598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b125b",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 300,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34238,
    "c": 0.13628,
    "h": 328.1
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

primary
#5B125B
secondary
#359335
accent
#EA3E3E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B125B

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

Preview Lab → · Contrast checker → · Palette generator →

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