#5C107B#5C107B

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

Color values

HEX#5C107B
RGBrgb(92, 16, 123)
HSLhsl(283, 77%, 27%)
HSVhsv(283, 87%, 48%)
CMYKcmyk(25.2%, 87%, 0%, 51.8%)
CIE-LABlab(23.92, 48.62, -43.11)
CIE-LCHlch(23.92, 64.98, 318.44°)
OKLaboklab(36.63% 0.1138 -0.1221)
OKLCHoklch(36.63% 0.167 313)
XYZxyz(8.1734, 4.0762, 19.0913)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C107B #2F7B10
analogous
#27107B #5C107B #7B1064
triadic
#5C107B #7B5C10 #107B5C
tetradic
#5C107B #7B2710 #2F7B10 #10647B
square
#5C107B #7B2710 #2F7B10 #10647B
split-complementary
#5C107B #647B10 #107B27
monochromatic
#14041B #330945 #5C107B #8517B1 #AB23E2

Accessibility & contrast

On white

11.57
#5C107B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5C107B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C107B
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C107B#FFFFFF#000000##FFFFFF
##5C107B1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c107b;
/* rgb */ color: rgb(92, 16, 123);
/* oklch */ color: oklch(36.6% 0.167 313.0);
Tailwind
colors: {
  custom: {
    50: '#8f5ba2',
    500: '#5c107b',
    950: '#000000',
  },
}
SCSS
$custom: #5c107b;
$custom-light: #8f5ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c107b",
  "rgb": {
    "r": 92,
    "g": 16,
    "b": 123
  },
  "hsl": {
    "h": 282.617,
    "s": 76.978,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36631,
    "c": 0.1669,
    "h": 313
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#5C107B
secondary
#59B235
accent
#F4346C
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C107B

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

Preview Lab → · Contrast checker → · Palette generator →

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