#5A147F#5A147F

#5A147F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.167 H 309.9°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#5A147F
RGBrgb(90, 20, 127)
HSLhsl(279, 73%, 29%)
HSVhsv(279, 84%, 50%)
CMYKcmyk(29.1%, 84.3%, 0%, 50.2%)
CIE-LABlab(24.34, 47.91, -44.98)
CIE-LCHlch(24.34, 65.71, 316.81°)
OKLaboklab(36.96% 0.107 -0.1277)
OKLCHoklch(36.96% 0.167 309.9)
XYZxyz(8.2966, 4.2065, 20.4494)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A147F #397F14
analogous
#25147F #5A147F #7F146F
triadic
#5A147F #7F5A14 #147F5A
tetradic
#5A147F #7F2514 #397F14 #146F7F
square
#5A147F #7F2514 #397F14 #146F7F
split-complementary
#5A147F #6F7F14 #147F25
monochromatic
#13041A #350C4A #5A147F #7F1CB4 #A22FDE

Accessibility & contrast

On white

11.41
#5A147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5A147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A147F
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A147F#FFFFFF#000000##FFFFFF
##5A147F1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#55304B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a147f;
/* rgb */ color: rgb(90, 20, 127);
/* oklch */ color: oklch(37.0% 0.167 309.9);
Tailwind
colors: {
  custom: {
    50: '#8d5ca5',
    500: '#5a147f',
    950: '#000000',
  },
}
SCSS
$custom: #5a147f;
$custom-light: #8d5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a147f",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 279.252,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36961,
    "c": 0.16659,
    "h": 309.9
  },
  "luminance": 0.04206
}

Semantic roles & 50–950 ramp

primary
#5A147F
secondary
#65B43B
accent
#EF3878
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A147F

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

Preview Lab → · Contrast checker → · Palette generator →

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