#5C148B#5C148B

#5C148B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.3% C 0.178 H 306.6°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5C148B
RGBrgb(92, 20, 139)
HSLhsl(276, 75%, 31%)
HSVhsv(276, 86%, 55%)
CMYKcmyk(33.8%, 85.6%, 0%, 45.5%)
CIE-LABlab(25.68, 50.92, -50.32)
CIE-LCHlch(25.68, 71.59, 315.34°)
OKLaboklab(38.28% 0.1064 -0.1433)
OKLCHoklch(38.28% 0.178 306.6)
XYZxyz(9.3230, 4.6398, 24.8255)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C148B #438B14
analogous
#21148B #5C148B #8B147E
triadic
#5C148B #8B5C14 #148B5C
tetradic
#5C148B #8B2114 #438B14 #147E8B
square
#5C148B #8B2114 #438B14 #147E8B
split-complementary
#5C148B #7E8B14 #148B21
monochromatic
#150520 #390C55 #5C148B #7F1CC1 #9F37E2

Accessibility & contrast

On white

10.89
#5C148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5C148B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C148B
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C148B#FFFFFF#000000##FFFFFF
##5C148B1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#543552
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c148b;
/* rgb */ color: rgb(92, 20, 139);
/* oklch */ color: oklch(38.3% 0.178 306.6);
Tailwind
colors: {
  custom: {
    50: '#905dae',
    500: '#5c148b',
    950: '#000000',
  },
}
SCSS
$custom: #5c148b;
$custom-light: #905dae;
$custom-dark: #000000;
JSON
{
  "hex": "#5c148b",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 276.303,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38276,
    "c": 0.17848,
    "h": 306.6
  },
  "luminance": 0.0464
}

Semantic roles & 50–950 ramp

primary
#5C148B
secondary
#70BF3C
accent
#F13680
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C148B

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

Preview Lab → · Contrast checker → · Palette generator →

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