#5B124F#5B124F

#5B124F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.126 H 335.7°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#5B124F
RGBrgb(91, 18, 79)
HSLhsl(310, 67%, 21%)
HSVhsv(310, 80%, 36%)
CMYKcmyk(0%, 80.2%, 13.2%, 64.3%)
CIE-LABlab(20.91, 39.34, -19.08)
CIE-LCHlch(20.91, 43.73, 334.13°)
OKLaboklab(33.5% 0.1152 -0.0521)
OKLCHoklch(33.5% 0.126 335.7)
XYZxyz(5.9421, 3.2218, 7.7045)
Luminance0.0322 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B124F #125B1E
analogous
#43125B #5B124F #5B122B
triadic
#5B124F #4F5B12 #124F5B
tetradic
#5B124F #5B4312 #125B1E #122B5B
square
#5B124F #5B4312 #125B1E #122B5B
split-complementary
#5B124F #2B5B12 #125B43
monochromatic
#1A0516 #280823 #5B124F #8E1C7B #C126A8

Accessibility & contrast

On white

12.77
#5B124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5B124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B124F
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B124F#FFFFFF#000000##FFFFFF
##5B124F1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132B51
Deuteranopia (green-blind)
#2D364D
Tritanopia (blue-blind)
#60182F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b124f;
/* rgb */ color: rgb(91, 18, 79);
/* oklch */ color: oklch(33.5% 0.126 335.7);
Tailwind
colors: {
  custom: {
    50: '#8c5980',
    500: '#5b124f',
    950: '#000000',
  },
}
SCSS
$custom: #5b124f;
$custom-light: #8c5980;
$custom-dark: #000000;
JSON
{
  "hex": "#5b124f",
  "rgb": {
    "r": 91,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 309.863,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33495,
    "c": 0.12642,
    "h": 335.7
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#5B124F
secondary
#359345
accent
#EA5A3E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B124F

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

Preview Lab → · Contrast checker → · Palette generator →

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