#5A125F#5A125F

#5A125F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.139 H 325.2°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#5A125F
RGBrgb(90, 18, 95)
HSLhsl(296, 68%, 22%)
HSVhsv(296, 81%, 37%)
CMYKcmyk(5.3%, 81.1%, 0%, 62.7%)
CIE-LABlab(21.70, 41.95, -28.55)
CIE-LCHlch(21.70, 50.74, 325.76°)
OKLaboklab(34.34% 0.1143 -0.0795)
OKLCHoklch(34.34% 0.139 325.2)
XYZxyz(6.4982, 3.4329, 11.1446)
Luminance0.0343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A125F #175F12
analogous
#34125F #5A125F #5F123E
triadic
#5A125F #5F5A12 #125F5A
tetradic
#5A125F #5F3412 #175F12 #123E5F
square
#5A125F #5F3412 #175F12 #123E5F
split-complementary
#5A125F #3E5F12 #125F34
monochromatic
#18051A #29082C #5A125F #8B1C92 #BB25C6

Accessibility & contrast

On white

12.45
#5A125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5A125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A125F
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A125F#FFFFFF#000000##FFFFFF
##5A125F1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#23375D
Tritanopia (blue-blind)
#5C2038
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a125f;
/* rgb */ color: rgb(90, 18, 95);
/* oklch */ color: oklch(34.3% 0.139 325.2);
Tailwind
colors: {
  custom: {
    50: '#8c598d',
    500: '#5a125f',
    950: '#000000',
  },
}
SCSS
$custom: #5a125f;
$custom-light: #8c598d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a125f",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 296.104,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34339,
    "c": 0.13922,
    "h": 325.2
  },
  "luminance": 0.03432
}

Semantic roles & 50–950 ramp

primary
#5A125F
secondary
#3C9736
accent
#EB3D48
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A125F

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

Preview Lab → · Contrast checker → · Palette generator →

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