#5C148C#5C148C

#5C148C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.179 H 306.2°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#5C148C
RGBrgb(92, 20, 140)
HSLhsl(276, 75%, 31%)
HSVhsv(276, 86%, 55%)
CMYKcmyk(34.3%, 85.7%, 0%, 45.1%)
CIE-LABlab(25.77, 51.15, -50.80)
CIE-LCHlch(25.77, 72.09, 315.20°)
OKLaboklab(38.36% 0.106 -0.1447)
OKLCHoklch(38.36% 0.179 306.2)
XYZxyz(9.3964, 4.6692, 25.2121)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C148C #448C14
analogous
#20148C #5C148C #8C1480
triadic
#5C148C #8C5C14 #148C5C
tetradic
#5C148C #8C2014 #448C14 #14808C
square
#5C148C #8C2014 #448C14 #14808C
split-complementary
#5C148C #808C14 #148C20
monochromatic
#160521 #390C56 #5C148C #7F1CC2 #9E38E3

Accessibility & contrast

On white

10.86
#5C148C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C148C
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C148C#FFFFFF#000000##FFFFFF
##5C148C1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#533652
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c148c;
/* rgb */ color: rgb(92, 20, 140);
/* oklch */ color: oklch(38.4% 0.179 306.2);
Tailwind
colors: {
  custom: {
    50: '#905daf',
    500: '#5c148c',
    950: '#000000',
  },
}
SCSS
$custom: #5c148c;
$custom-light: #905daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c148c",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 140
  },
  "hsl": {
    "h": 276,
    "s": 75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38364,
    "c": 0.17942,
    "h": 306.2
  },
  "luminance": 0.04669
}

Semantic roles & 50–950 ramp

primary
#5C148C
secondary
#71C03C
accent
#F23681
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C148C

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

Preview Lab → · Contrast checker → · Palette generator →

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