#5A148C#5A148C

#5A148C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.179 H 305.2°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#5A148C
RGBrgb(90, 20, 140)
HSLhsl(275, 75%, 31%)
HSVhsv(275, 86%, 55%)
CMYKcmyk(35.7%, 85.7%, 0%, 45.1%)
CIE-LABlab(25.47, 50.84, -51.31)
CIE-LCHlch(25.47, 72.23, 314.74°)
OKLaboklab(38.09% 0.1031 -0.1463)
OKLCHoklch(38.09% 0.179 305.2)
XYZxyz(9.1992, 4.5675, 25.2028)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A148C #468C14
analogous
#1E148C #5A148C #8C1482
triadic
#5A148C #8C5A14 #148C5A
tetradic
#5A148C #8C1E14 #468C14 #14828C
square
#5A148C #8C1E14 #468C14 #14828C
split-complementary
#5A148C #828C14 #148C1E
monochromatic
#150521 #380C56 #5A148C #7C1CC2 #9B38E3

Accessibility & contrast

On white

10.98
#5A148C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5A148C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A148C
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A148C#FFFFFF#000000##FFFFFF
##5A148C1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#503652
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a148c;
/* rgb */ color: rgb(90, 20, 140);
/* oklch */ color: oklch(38.1% 0.179 305.2);
Tailwind
colors: {
  custom: {
    50: '#8e5daf',
    500: '#5a148c',
    950: '#000000',
  },
}
SCSS
$custom: #5a148c;
$custom-light: #8e5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a148c",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 140
  },
  "hsl": {
    "h": 275,
    "s": 75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38089,
    "c": 0.17897,
    "h": 305.2
  },
  "luminance": 0.04567
}

Semantic roles & 50–950 ramp

primary
#5A148C
secondary
#73C03C
accent
#F23684
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A148C

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

Preview Lab → · Contrast checker → · Palette generator →

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