#5A18A0#5A18A0

#5A18A0 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.195 H 298.6°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#5A18A0
RGBrgb(90, 24, 160)
HSLhsl(269, 74%, 36%)
HSVhsv(269, 85%, 63%)
CMYKcmyk(43.7%, 85%, 0%, 37.3%)
CIE-LABlab(27.75, 54.25, -59.87)
CIE-LCHlch(27.75, 80.79, 312.18°)
OKLaboklab(40.23% 0.0935 -0.1715)
OKLCHoklch(40.23% 0.195 298.6)
XYZxyz(10.8866, 5.3648, 33.7128)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A18A0 #5EA018
analogous
#181AA0 #5A18A0 #9E18A0
triadic
#5A18A0 #A05A18 #18A05A
tetradic
#5A18A0 #A0181A #5EA018 #18A09E
square
#5A18A0 #A0181A #5EA018 #18A09E
split-complementary
#5A18A0 #A09E18 #1AA018
monochromatic
#1E0836 #3C106B #5A18A0 #7820D5 #974EE4

Accessibility & contrast

On white

10.13
#5A18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5A18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A18A0
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A18A0#FFFFFF#000000##FFFFFF
##5A18A01.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A4
Deuteranopia (green-blind)
#00409E
Tritanopia (blue-blind)
#48415F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a18a0;
/* rgb */ color: rgb(90, 24, 160);
/* oklch */ color: oklch(40.2% 0.195 298.6);
Tailwind
colors: {
  custom: {
    50: '#9060bd',
    500: '#5a18a0',
    950: '#000000',
  },
}
SCSS
$custom: #5a18a0;
$custom-light: #9060bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a18a0",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 269.118,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4023,
    "c": 0.1953,
    "h": 298.6
  },
  "luminance": 0.05365
}

Semantic roles & 50–950 ramp

primary
#5A18A0
secondary
#8CC64D
accent
#F13797
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5A18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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