#5B107B#5B107B

#5B107B is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.5% C 0.167 H 312.4°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#5B107B
RGBrgb(91, 16, 123)
HSLhsl(282, 77%, 27%)
HSVhsv(282, 87%, 48%)
CMYKcmyk(26%, 87%, 0%, 51.8%)
CIE-LABlab(23.75, 48.44, -43.39)
CIE-LCHlch(23.75, 65.04, 318.15°)
OKLaboklab(36.48% 0.1124 -0.123)
OKLCHoklch(36.48% 0.167 312.4)
XYZxyz(8.0742, 4.0250, 19.0866)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B107B #307B10
analogous
#26107B #5B107B #7B1066
triadic
#5B107B #7B5B10 #107B5B
tetradic
#5B107B #7B2610 #307B10 #10667B
square
#5B107B #7B2610 #307B10 #10667B
split-complementary
#5B107B #667B10 #107B26
monochromatic
#14041B #330945 #5B107B #8317B1 #A923E2

Accessibility & contrast

On white

11.63
#5B107B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B107B
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B107B#FFFFFF#000000##FFFFFF
##5B107B1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b107b;
/* rgb */ color: rgb(91, 16, 123);
/* oklch */ color: oklch(36.5% 0.167 312.4);
Tailwind
colors: {
  custom: {
    50: '#8e5ba2',
    500: '#5b107b',
    950: '#000000',
  },
}
SCSS
$custom: #5b107b;
$custom-light: #8e5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b107b",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 123
  },
  "hsl": {
    "h": 282.056,
    "s": 76.978,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36481,
    "c": 0.16659,
    "h": 312.4
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#5B107B
secondary
#5AB235
accent
#F4346D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B107B

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

Preview Lab → · Contrast checker → · Palette generator →

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