#5A145F#5A145F

#5A145F is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.137 H 325.1°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#5A145F
RGBrgb(90, 20, 95)
HSLhsl(296, 65%, 23%)
HSVhsv(296, 79%, 37%)
CMYKcmyk(5.3%, 78.9%, 0%, 62.7%)
CIE-LABlab(21.95, 41.24, -28.16)
CIE-LCHlch(21.95, 49.94, 325.67°)
OKLaboklab(34.52% 0.1123 -0.0784)
OKLCHoklch(34.52% 0.137 325.1)
XYZxyz(6.5320, 3.5006, 11.1559)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A145F #195F14
analogous
#34145F #5A145F #5F143E
triadic
#5A145F #5F5A14 #145F5A
tetradic
#5A145F #5F3414 #195F14 #143E5F
square
#5A145F #5F3414 #195F14 #143E5F
split-complementary
#5A145F #3E5F14 #145F34
monochromatic
#180519 #2A092C #5A145F #8A1F92 #BA29C4

Accessibility & contrast

On white

12.35
#5A145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5A145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A145F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A145F#FFFFFF#000000##FFFFFF
##5A145F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#24375D
Tritanopia (blue-blind)
#5C2138
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a145f;
/* rgb */ color: rgb(90, 20, 95);
/* oklch */ color: oklch(34.5% 0.137 325.1);
Tailwind
colors: {
  custom: {
    50: '#8c5a8d',
    500: '#5a145f',
    950: '#000000',
  },
}
SCSS
$custom: #5a145f;
$custom-light: #8c5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a145f",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 296,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34515,
    "c": 0.13697,
    "h": 325.1
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#5A145F
secondary
#3E9738
accent
#E8404B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A145F

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

Preview Lab → · Contrast checker → · Palette generator →

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