#5A147B#5A147B

#5A147B is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.163 H 311.5°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#5A147B
RGBrgb(90, 20, 123)
HSLhsl(281, 72%, 28%)
HSVhsv(281, 84%, 48%)
CMYKcmyk(26.8%, 83.7%, 0%, 51.8%)
CIE-LABlab(24.01, 47.03, -42.98)
CIE-LCHlch(24.01, 63.71, 317.58°)
OKLaboklab(36.63% 0.108 -0.1218)
OKLCHoklch(36.63% 0.163 311.5)
XYZxyz(8.0411, 4.1042, 19.1037)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A147B #357B14
analogous
#27147B #5A147B #7B1468
triadic
#5A147B #7B5A14 #147B5A
tetradic
#5A147B #7B2714 #357B14 #14687B
square
#5A147B #7B2714 #357B14 #14687B
split-complementary
#5A147B #687B14 #147B27
monochromatic
#13041A #330B46 #5A147B #811DB0 #A42DDD

Accessibility & contrast

On white

11.53
#5A147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5A147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A147B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A147B#FFFFFF#000000##FFFFFF
##5A147B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#562E48
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a147b;
/* rgb */ color: rgb(90, 20, 123);
/* oklch */ color: oklch(36.6% 0.163 311.5);
Tailwind
colors: {
  custom: {
    50: '#8d5ca2',
    500: '#5a147b',
    950: '#000000',
  },
}
SCSS
$custom: #5a147b;
$custom-light: #8d5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a147b",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 280.777,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36628,
    "c": 0.1628,
    "h": 311.5
  },
  "luminance": 0.04104
}

Semantic roles & 50–950 ramp

primary
#5A147B
secondary
#60B13A
accent
#EF3973
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A147B

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

Preview Lab → · Contrast checker → · Palette generator →

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