#5A168A#5A168A

#5A168A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.175 H 305.7°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5A168A
RGBrgb(90, 22, 138)
HSLhsl(275, 73%, 31%)
HSVhsv(275, 84%, 54%)
CMYKcmyk(34.8%, 84.1%, 0%, 45.9%)
CIE-LABlab(25.51, 49.73, -49.99)
CIE-LCHlch(25.51, 70.51, 314.85°)
OKLaboklab(38.07% 0.1023 -0.1424)
OKLCHoklch(38.07% 0.175 305.7)
XYZxyz(9.0898, 4.5825, 24.4455)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A168A #468A16
analogous
#20168A #5A168A #8A1680
triadic
#5A168A #8A5A16 #168A5A
tetradic
#5A168A #8A2016 #468A16 #16808A
square
#5A168A #8A2016 #468A16 #16808A
split-complementary
#5A168A #808A16 #168A20
monochromatic
#150520 #380E55 #5A168A #7C1EBF #9B3BE0

Accessibility & contrast

On white

10.96
#5A168A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5A168A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A168A
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A168A#FFFFFF#000000##FFFFFF
##5A168A1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#513651
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a168a;
/* rgb */ color: rgb(90, 22, 138);
/* oklch */ color: oklch(38.1% 0.175 305.7);
Tailwind
colors: {
  custom: {
    50: '#8e5dad',
    500: '#5a168a',
    950: '#000000',
  },
}
SCSS
$custom: #5a168a;
$custom-light: #8e5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a168a",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 138
  },
  "hsl": {
    "h": 275.172,
    "s": 72.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38066,
    "c": 0.17536,
    "h": 305.7
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#5A168A
secondary
#73BE3E
accent
#EF3984
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A168A

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

Preview Lab → · Contrast checker → · Palette generator →

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