#5A125C#5A125C

#5A125C is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.137 H 326.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#5A125C
RGBrgb(90, 18, 92)
HSLhsl(298, 67%, 22%)
HSVhsv(298, 80%, 36%)
CMYKcmyk(2.2%, 80.4%, 0%, 63.9%)
CIE-LABlab(21.50, 41.38, -26.88)
CIE-LCHlch(21.50, 49.35, 327.00°)
OKLaboklab(34.14% 0.1144 -0.0747)
OKLCHoklch(34.14% 0.137 326.9)
XYZxyz(6.3644, 3.3794, 10.4402)
Luminance0.0338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A125C #145C12
analogous
#35125C #5A125C #5C1239
triadic
#5A125C #5C5A12 #125C5A
tetradic
#5A125C #5C3512 #145C12 #12395C
square
#5A125C #5C3512 #145C12 #12395C
split-complementary
#5A125C #395C12 #125C35
monochromatic
#19051A #280829 #5A125C #8C1C8F #BE26C2

Accessibility & contrast

On white

12.53
#5A125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5A125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A125C
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A125C#FFFFFF#000000##FFFFFF
##5A125C1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5E
Deuteranopia (green-blind)
#25375A
Tritanopia (blue-blind)
#5D1F36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a125c;
/* rgb */ color: rgb(90, 18, 92);
/* oklch */ color: oklch(34.1% 0.137 326.9);
Tailwind
colors: {
  custom: {
    50: '#8c598a',
    500: '#5a125c',
    950: '#000000',
  },
}
SCSS
$custom: #5a125c;
$custom-light: #8c598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a125c",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 298.378,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34136,
    "c": 0.13662,
    "h": 326.9
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#5A125C
secondary
#389435
accent
#EA3E42
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A125C

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

Preview Lab → · Contrast checker → · Palette generator →

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