#5A125E#5A125E

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

Color values

HEX#5A125E
RGBrgb(90, 18, 94)
HSLhsl(297, 68%, 22%)
HSVhsv(297, 81%, 37%)
CMYKcmyk(4.3%, 80.9%, 0%, 63.1%)
CIE-LABlab(21.63, 41.76, -28.00)
CIE-LCHlch(21.63, 50.28, 326.16°)
OKLaboklab(34.27% 0.1143 -0.0779)
OKLCHoklch(34.27% 0.138 325.7)
XYZxyz(6.4530, 3.4149, 10.9068)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A125E #165E12
analogous
#34125E #5A125E #5E123C
triadic
#5A125E #5E5A12 #125E5A
tetradic
#5A125E #5E3412 #165E12 #123C5E
square
#5A125E #5E3412 #165E12 #123C5E
split-complementary
#5A125E #3C5E12 #125E34
monochromatic
#19051A #29082B #5A125E #8B1C91 #BC26C5

Accessibility & contrast

On white

12.48
#5A125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A125E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A125E#FFFFFF#000000##FFFFFF
##5A125E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a125e;
/* rgb */ color: rgb(90, 18, 94);
/* oklch */ color: oklch(34.3% 0.138 325.7);
Tailwind
colors: {
  custom: {
    50: '#8c598c',
    500: '#5a125e',
    950: '#000000',
  },
}
SCSS
$custom: #5a125e;
$custom-light: #8c598c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a125e",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 296.842,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34271,
    "c": 0.13835,
    "h": 325.7
  },
  "luminance": 0.03414
}

Semantic roles & 50–950 ramp

primary
#5A125E
secondary
#3B9635
accent
#EB3D46
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A125E

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

Preview Lab → · Contrast checker → · Palette generator →

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