#5A148B#5A148B

#5A148B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 38.0% C 0.178 H 305.5°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#5A148B
RGBrgb(90, 20, 139)
HSLhsl(275, 75%, 31%)
HSVhsv(275, 86%, 55%)
CMYKcmyk(35.3%, 85.6%, 0%, 45.5%)
CIE-LABlab(25.38, 50.61, -50.83)
CIE-LCHlch(25.38, 71.73, 314.88°)
OKLaboklab(38% 0.1034 -0.1449)
OKLCHoklch(38% 0.178 305.5)
XYZxyz(9.1258, 4.5381, 24.8163)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A148B #458B14
analogous
#1E148B #5A148B #8B1480
triadic
#5A148B #8B5A14 #148B5A
tetradic
#5A148B #8B1E14 #458B14 #14808B
square
#5A148B #8B1E14 #458B14 #14808B
split-complementary
#5A148B #808B14 #148B1E
monochromatic
#150520 #370C55 #5A148B #7D1CC1 #9C37E2

Accessibility & contrast

On white

11.01
#5A148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A148B
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A148B#FFFFFF#000000##FFFFFF
##5A148B1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#513652
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a148b;
/* rgb */ color: rgb(90, 20, 139);
/* oklch */ color: oklch(38.0% 0.178 305.5);
Tailwind
colors: {
  custom: {
    50: '#8e5dae',
    500: '#5a148b',
    950: '#000000',
  },
}
SCSS
$custom: #5a148b;
$custom-light: #8e5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a148b",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 275.294,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38,
    "c": 0.17801,
    "h": 305.5
  },
  "luminance": 0.04538
}

Semantic roles & 50–950 ramp

primary
#5A148B
secondary
#72BF3C
accent
#F13683
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A148B

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

Preview Lab → · Contrast checker → · Palette generator →

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