#5A169F#5A169F

#5A169F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.196 H 299.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#5A169F
RGBrgb(90, 22, 159)
HSLhsl(270, 76%, 35%)
HSVhsv(270, 86%, 62%)
CMYKcmyk(43.4%, 86.2%, 0%, 37.6%)
CIE-LABlab(27.44, 54.65, -59.78)
CIE-LCHlch(27.44, 80.99, 312.43°)
OKLaboklab(39.99% 0.0951 -0.1712)
OKLCHoklch(39.99% 0.196 299)
XYZxyz(10.7598, 5.2505, 33.2407)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A169F #5B9F16
analogous
#16169F #5A169F #9E169F
triadic
#5A169F #9F5A16 #169F5A
tetradic
#5A169F #9F1616 #5B9F16 #169F9E
square
#5A169F #9F1616 #5B9F16 #169F9E
split-complementary
#5A169F #9F9E16 #169F16
monochromatic
#1D0733 #3C0F69 #5A169F #781DD5 #974AE6

Accessibility & contrast

On white

10.24
#5A169F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5A169F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A169F
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A169F#FFFFFF#000000##FFFFFF
##5A169F1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#49405E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a169f;
/* rgb */ color: rgb(90, 22, 159);
/* oklch */ color: oklch(40.0% 0.196 299.0);
Tailwind
colors: {
  custom: {
    50: '#905fbc',
    500: '#5a169f',
    950: '#000000',
  },
}
SCSS
$custom: #5a169f;
$custom-light: #905fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a169f",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 159
  },
  "hsl": {
    "h": 269.781,
    "s": 75.691,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39986,
    "c": 0.19581,
    "h": 299
  },
  "luminance": 0.05251
}

Semantic roles & 50–950 ramp

primary
#5A169F
secondary
#89C74A
accent
#F23695
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5A169F

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

Preview Lab → · Contrast checker → · Palette generator →

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