#5B107F#5B107F

#5B107F is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.8% C 0.170 H 310.8°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5B107F
RGBrgb(91, 16, 127)
HSLhsl(281, 78%, 28%)
HSVhsv(281, 87%, 50%)
CMYKcmyk(28.3%, 87.4%, 0%, 50.2%)
CIE-LABlab(24.09, 49.30, -45.39)
CIE-LCHlch(24.09, 67.01, 317.37°)
OKLaboklab(36.82% 0.1112 -0.1289)
OKLCHoklch(36.82% 0.17 310.8)
XYZxyz(8.3297, 4.1272, 20.4324)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B107F #347F10
analogous
#24107F #5B107F #7F106B
triadic
#5B107F #7F5B10 #107F5B
tetradic
#5B107F #7F2410 #347F10 #106B7F
square
#5B107F #7F2410 #347F10 #106B7F
split-complementary
#5B107F #6B7F10 #107F24
monochromatic
#13031B #340949 #5B107F #8217B5 #A626E4

Accessibility & contrast

On white

11.50
#5B107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5B107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B107F
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B107F#FFFFFF#000000##FFFFFF
##5B107F1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#562F4A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b107f;
/* rgb */ color: rgb(91, 16, 127);
/* oklch */ color: oklch(36.8% 0.170 310.8);
Tailwind
colors: {
  custom: {
    50: '#8e5ba5',
    500: '#5b107f',
    950: '#000000',
  },
}
SCSS
$custom: #5b107f;
$custom-light: #8e5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b107f",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 280.541,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36817,
    "c": 0.17023,
    "h": 310.8
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#5B107F
secondary
#5FB536
accent
#F43472
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B107F

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

Preview Lab → · Contrast checker → · Palette generator →

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