#5A148D#5A148D

#5A148D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.180 H 304.8°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#5A148D
RGBrgb(90, 20, 141)
HSLhsl(275, 75%, 32%)
HSVhsv(275, 86%, 55%)
CMYKcmyk(36.2%, 85.8%, 0%, 44.7%)
CIE-LABlab(25.55, 51.06, -51.78)
CIE-LCHlch(25.55, 72.73, 314.60°)
OKLaboklab(38.18% 0.1027 -0.1477)
OKLCHoklch(38.18% 0.18 304.8)
XYZxyz(9.2732, 4.5971, 25.5929)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A148D #478D14
analogous
#1E148D #5A148D #8D1484
triadic
#5A148D #8D5A14 #148D5A
tetradic
#5A148D #8D1E14 #478D14 #14848D
square
#5A148D #8D1E14 #478D14 #14848D
split-complementary
#5A148D #848D14 #148D1E
monochromatic
#160522 #380C57 #5A148D #7C1CC3 #9B39E3

Accessibility & contrast

On white

10.94
#5A148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5A148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A148D
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A148D#FFFFFF#000000##FFFFFF
##5A148D1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#503753
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a148d;
/* rgb */ color: rgb(90, 20, 141);
/* oklch */ color: oklch(38.2% 0.180 304.8);
Tailwind
colors: {
  custom: {
    50: '#8e5daf',
    500: '#5a148d',
    950: '#000000',
  },
}
SCSS
$custom: #5a148d;
$custom-light: #8e5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a148d",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 274.711,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38178,
    "c": 0.17992,
    "h": 304.8
  },
  "luminance": 0.04597
}

Semantic roles & 50–950 ramp

primary
#5A148D
secondary
#74C13C
accent
#F23685
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A148D

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

Preview Lab → · Contrast checker → · Palette generator →

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