#5A125B#5A125B

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

Color values

HEX#5A125B
RGBrgb(90, 18, 91)
HSLhsl(299, 67%, 21%)
HSVhsv(299, 80%, 36%)
CMYKcmyk(1.1%, 80.2%, 0%, 64.3%)
CIE-LABlab(21.44, 41.20, -26.32)
CIE-LCHlch(21.44, 48.89, 327.43°)
OKLaboklab(34.07% 0.1144 -0.073)
OKLCHoklch(34.07% 0.136 327.5)
XYZxyz(6.3210, 3.3621, 10.2115)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A125B #135B12
analogous
#36125B #5A125B #5B1238
triadic
#5A125B #5B5A12 #125B5A
tetradic
#5A125B #5B3612 #135B12 #12385B
square
#5A125B #5B3612 #135B12 #12385B
split-complementary
#5A125B #385B12 #125B36
monochromatic
#19051A #270828 #5A125B #8D1C8E #BF26C1

Accessibility & contrast

On white

12.56
#5A125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5A125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A125B
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A125B#FFFFFF#000000##FFFFFF
##5A125B1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022E5D
Deuteranopia (green-blind)
#253759
Tritanopia (blue-blind)
#5D1E36
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a125b;
/* rgb */ color: rgb(90, 18, 91);
/* oklch */ color: oklch(34.1% 0.136 327.5);
Tailwind
colors: {
  custom: {
    50: '#8c598a',
    500: '#5a125b',
    950: '#000000',
  },
}
SCSS
$custom: #5a125b;
$custom-light: #8c598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a125b",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 299.178,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34069,
    "c": 0.13576,
    "h": 327.5
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#5A125B
secondary
#379335
accent
#EA3E40
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A125B

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

Preview Lab → · Contrast checker → · Palette generator →

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