#5A145E#5A145E

#5A145E is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.136 H 325.6°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#5A145E
RGBrgb(90, 20, 94)
HSLhsl(297, 65%, 22%)
HSVhsv(297, 79%, 37%)
CMYKcmyk(4.3%, 78.7%, 0%, 63.1%)
CIE-LABlab(21.88, 41.05, -27.60)
CIE-LCHlch(21.88, 49.47, 326.08°)
OKLaboklab(34.45% 0.1124 -0.0768)
OKLCHoklch(34.45% 0.136 325.6)
XYZxyz(6.4868, 3.4826, 10.9180)
Luminance0.0348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A145E #185E14
analogous
#35145E #5A145E #5E143D
triadic
#5A145E #5E5A14 #145E5A
tetradic
#5A145E #5E3514 #185E14 #143D5E
square
#5A145E #5E3514 #185E14 #143D5E
split-complementary
#5A145E #3D5E14 #145E35
monochromatic
#180519 #2A092C #5A145E #8A1F90 #BB29C3

Accessibility & contrast

On white

12.38
#5A145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A145E
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A145E#FFFFFF#000000##FFFFFF
##5A145E1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#24375C
Tritanopia (blue-blind)
#5C2138
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a145e;
/* rgb */ color: rgb(90, 20, 94);
/* oklch */ color: oklch(34.4% 0.136 325.6);
Tailwind
colors: {
  custom: {
    50: '#8c5a8c',
    500: '#5a145e',
    950: '#000000',
  },
}
SCSS
$custom: #5a145e;
$custom-light: #8c5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a145e",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 296.757,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34447,
    "c": 0.13609,
    "h": 325.6
  },
  "luminance": 0.03482
}

Semantic roles & 50–950 ramp

primary
#5A145E
secondary
#3D9638
accent
#E84049
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A145E

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

Preview Lab → · Contrast checker → · Palette generator →

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