#5A169E#5A169E

#5A169E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.9% C 0.195 H 299.3°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#5A169E
RGBrgb(90, 22, 158)
HSLhsl(270, 76%, 35%)
HSVhsv(270, 86%, 62%)
CMYKcmyk(43%, 86.1%, 0%, 38%)
CIE-LABlab(27.34, 54.41, -59.32)
CIE-LCHlch(27.34, 80.50, 312.53°)
OKLaboklab(39.89% 0.0954 -0.1699)
OKLCHoklch(39.89% 0.195 299.3)
XYZxyz(10.6733, 5.2160, 32.7856)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A169E #5A9E16
analogous
#16169E #5A169E #9E169E
triadic
#5A169E #9E5A16 #169E5A
tetradic
#5A169E #9E1616 #5A9E16 #169E9E
square
#5A169E #9E1616 #5A9E16 #169E9E
split-complementary
#5A169E #9E9E16 #169E16
monochromatic
#1D0733 #3B0F68 #5A169E #791DD4 #9749E6

Accessibility & contrast

On white

10.28
#5A169E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5A169E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A169E
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A169E#FFFFFF#000000##FFFFFF
##5A169E1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#493F5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a169e;
/* rgb */ color: rgb(90, 22, 158);
/* oklch */ color: oklch(39.9% 0.195 299.3);
Tailwind
colors: {
  custom: {
    50: '#905fbc',
    500: '#5a169e',
    950: '#000000',
  },
}
SCSS
$custom: #5a169e;
$custom-light: #905fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a169e",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 158
  },
  "hsl": {
    "h": 270,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39891,
    "c": 0.19484,
    "h": 299.3
  },
  "luminance": 0.05216
}

Semantic roles & 50–950 ramp

primary
#5A169E
secondary
#88C749
accent
#F23694
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5A169E

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

Preview Lab → · Contrast checker → · Palette generator →

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