#5A1A67#5A1A67

#5A1A67 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.7% C 0.137 H 320.3°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#5A1A67
RGBrgb(90, 26, 103)
HSLhsl(290, 60%, 25%)
HSVhsv(290, 75%, 40%)
CMYKcmyk(12.6%, 74.8%, 0%, 59.6%)
CIE-LABlab(23.31, 40.47, -31.23)
CIE-LCHlch(23.31, 51.12, 322.34°)
OKLaboklab(35.66% 0.1054 -0.0874)
OKLCHoklch(35.66% 0.137 320.3)
XYZxyz(7.0337, 3.8921, 13.2101)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A67 #27671A
analogous
#331A67 #5A1A67 #671A4D
triadic
#5A1A67 #675A1A #1A675A
tetradic
#5A1A67 #67331A #27671A #1A4D67
square
#5A1A67 #67331A #27671A #1A4D67
split-complementary
#5A1A67 #4D671A #1A6733
monochromatic
#150618 #2F0E36 #5A1A67 #852698 #AF33C9

Accessibility & contrast

On white

11.81
#5A1A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5A1A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1A67
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A67#FFFFFF#000000##FFFFFF
##5A1A671.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#213A65
Tritanopia (blue-blind)
#5A283E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1a67;
/* rgb */ color: rgb(90, 26, 103);
/* oklch */ color: oklch(35.7% 0.137 320.3);
Tailwind
colors: {
  custom: {
    50: '#8b5d93',
    500: '#5a1a67',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a67;
$custom-light: #8b5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a67",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 103
  },
  "hsl": {
    "h": 289.87,
    "s": 59.69,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3566,
    "c": 0.13697,
    "h": 320.3
  },
  "luminance": 0.03892
}

Semantic roles & 50–950 ramp

primary
#5A1A67
secondary
#509D40
accent
#E34560
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5A1A67

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

Preview Lab → · Contrast checker → · Palette generator →

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