#5A1068#5A1068

#5A1068 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.8% C 0.149 H 320.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#5A1068
RGBrgb(90, 16, 104)
HSLhsl(290, 73%, 24%)
HSVhsv(290, 85%, 41%)
CMYKcmyk(13.5%, 84.6%, 0%, 59.2%)
CIE-LABlab(22.10, 44.34, -33.82)
CIE-LCHlch(22.10, 55.77, 322.67°)
OKLaboklab(34.83% 0.1151 -0.0949)
OKLCHoklch(34.83% 0.149 320.5)
XYZxyz(6.9001, 3.5441, 13.4146)
Luminance0.0354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1068 #1E6810
analogous
#2E1068 #5A1068 #68104A
triadic
#5A1068 #685A10 #10685A
tetradic
#5A1068 #682E10 #1E6810 #104A68
square
#5A1068 #682E10 #1E6810 #104A68
split-complementary
#5A1068 #4A6810 #10682E
monochromatic
#17041B #2C0833 #5A1068 #88189D #B620D2

Accessibility & contrast

On white

12.29
#5A1068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A1068 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1068
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1068#FFFFFF#000000##FFFFFF
##5A10681.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#1A3766
Tritanopia (blue-blind)
#5A243D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1068;
/* rgb */ color: rgb(90, 16, 104);
/* oklch */ color: oklch(34.8% 0.149 320.5);
Tailwind
colors: {
  custom: {
    50: '#8c5994',
    500: '#5a1068',
    950: '#000000',
  },
}
SCSS
$custom: #5a1068;
$custom-light: #8c5994;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1068",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 290.455,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34825,
    "c": 0.14917,
    "h": 320.5
  },
  "luminance": 0.03544
}

Semantic roles & 50–950 ramp

primary
#5A1068
secondary
#45A034
accent
#F03855
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1068

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

Preview Lab → · Contrast checker → · Palette generator →

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