#5B107C#5B107C

#5B107C is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.168 H 312.0°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#5B107C
RGBrgb(91, 16, 124)
HSLhsl(282, 77%, 27%)
HSVhsv(282, 87%, 49%)
CMYKcmyk(26.6%, 87.1%, 0%, 51.4%)
CIE-LABlab(23.84, 48.66, -43.89)
CIE-LCHlch(23.84, 65.53, 317.95°)
OKLaboklab(36.56% 0.1121 -0.1245)
OKLCHoklch(36.56% 0.168 312)
XYZxyz(8.1371, 4.0502, 19.4180)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B107C #317C10
analogous
#25107C #5B107C #7C1067
triadic
#5B107C #7C5B10 #107C5B
tetradic
#5B107C #7C2510 #317C10 #10677C
square
#5B107C #7C2510 #317C10 #10677C
split-complementary
#5B107C #677C10 #107C25
monochromatic
#14031B #330946 #5B107C #8317B2 #A824E3

Accessibility & contrast

On white

11.60
#5B107C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5B107C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B107C
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B107C#FFFFFF#000000##FFFFFF
##5B107C1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#572D48
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b107c;
/* rgb */ color: rgb(91, 16, 124);
/* oklch */ color: oklch(36.6% 0.168 312.0);
Tailwind
colors: {
  custom: {
    50: '#8e5ba3',
    500: '#5b107c',
    950: '#000000',
  },
}
SCSS
$custom: #5b107c;
$custom-light: #8e5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b107c",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 124
  },
  "hsl": {
    "h": 281.667,
    "s": 77.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36564,
    "c": 0.1675,
    "h": 312
  },
  "luminance": 0.0405
}

Semantic roles & 50–950 ramp

primary
#5B107C
secondary
#5CB235
accent
#F4346F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B107C

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

Preview Lab → · Contrast checker → · Palette generator →

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