#5A125A#5A125A

#5A125A is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.135 H 328.1°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#5A125A
RGBrgb(90, 18, 90)
HSLhsl(300, 67%, 21%)
HSVhsv(300, 80%, 35%)
CMYKcmyk(0%, 80%, 0%, 64.7%)
CIE-LABlab(21.38, 41.01, -25.75)
CIE-LCHlch(21.38, 48.43, 327.88°)
OKLaboklab(34% 0.1145 -0.0714)
OKLCHoklch(34% 0.135 328.1)
XYZxyz(6.2781, 3.3449, 9.9858)
Luminance0.0334 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A125A #125A12
analogous
#36125A #5A125A #5A1236
triadic
#5A125A #5A5A12 #125A5A
tetradic
#5A125A #5A3612 #125A12 #12365A
square
#5A125A #5A3612 #125A12 #12365A
split-complementary
#5A125A #365A12 #125A36
monochromatic
#1A051A #270827 #5A125A #8D1C8D #C026C0

Accessibility & contrast

On white

12.58
#5A125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A125A
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A125A#FFFFFF#000000##FFFFFF
##5A125A1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032D5C
Deuteranopia (green-blind)
#263758
Tritanopia (blue-blind)
#5D1E35
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a125a;
/* rgb */ color: rgb(90, 18, 90);
/* oklch */ color: oklch(34.0% 0.135 328.1);
Tailwind
colors: {
  custom: {
    50: '#8c5989',
    500: '#5a125a',
    950: '#000000',
  },
}
SCSS
$custom: #5a125a;
$custom-light: #8c5989;
$custom-dark: #000000;
JSON
{
  "hex": "#5a125a",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 300,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.34003,
    "c": 0.13489,
    "h": 328.1
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#5A125A
secondary
#359335
accent
#EA3E3E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A125A

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

Preview Lab → · Contrast checker → · Palette generator →

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