#5A126A#5A126A

#5A126A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.1% C 0.149 H 319.4°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#5A126A
RGBrgb(90, 18, 106)
HSLhsl(289, 71%, 24%)
HSVhsv(289, 83%, 42%)
CMYKcmyk(15.1%, 83%, 0%, 58.4%)
CIE-LABlab(22.47, 44.11, -34.54)
CIE-LCHlch(22.47, 56.02, 321.94°)
OKLaboklab(35.13% 0.1131 -0.097)
OKLCHoklch(35.13% 0.149 319.4)
XYZxyz(7.0339, 3.6472, 13.9664)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A126A #226A12
analogous
#2E126A #5A126A #6A124E
triadic
#5A126A #6A5A12 #126A5A
tetradic
#5A126A #6A2E12 #226A12 #124E6A
square
#5A126A #6A2E12 #226A12 #124E6A
split-complementary
#5A126A #4E6A12 #126A2E
monochromatic
#16041A #2E0936 #5A126A #861B9E #B324D3

Accessibility & contrast

On white

12.14
#5A126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5A126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A126A
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A126A#FFFFFF#000000##FFFFFF
##5A126A1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#193868
Tritanopia (blue-blind)
#5A253E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a126a;
/* rgb */ color: rgb(90, 18, 106);
/* oklch */ color: oklch(35.1% 0.149 319.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a95',
    500: '#5a126a',
    950: '#000000',
  },
}
SCSS
$custom: #5a126a;
$custom-light: #8c5a95;
$custom-dark: #000000;
JSON
{
  "hex": "#5a126a",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 289.091,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35129,
    "c": 0.14902,
    "h": 319.4
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#5A126A
secondary
#4AA236
accent
#EE3A5B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A126A

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

Preview Lab → · Contrast checker → · Palette generator →

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