#5A168C#5A168C

#5A168C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.177 H 305.0°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5A168C
RGBrgb(90, 22, 140)
HSLhsl(275, 73%, 32%)
HSVhsv(275, 84%, 55%)
CMYKcmyk(35.7%, 84.3%, 0%, 45.1%)
CIE-LABlab(25.69, 50.19, -50.95)
CIE-LCHlch(25.69, 71.51, 314.57°)
OKLaboklab(38.24% 0.1017 -0.1453)
OKLCHoklch(38.24% 0.177 305)
XYZxyz(9.2359, 4.6410, 25.2151)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A168C #488C16
analogous
#1F168C #5A168C #8C1683
triadic
#5A168C #8C5A16 #168C5A
tetradic
#5A168C #8C1F16 #488C16 #16838C
square
#5A168C #8C1F16 #488C16 #16838C
split-complementary
#5A168C #838C16 #168C1F
monochromatic
#160522 #380E57 #5A168C #7C1EC1 #9B3CE0

Accessibility & contrast

On white

10.89
#5A168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5A168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A168C
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A168C#FFFFFF#000000##FFFFFF
##5A168C1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#503753
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a168c;
/* rgb */ color: rgb(90, 22, 140);
/* oklch */ color: oklch(38.2% 0.177 305.0);
Tailwind
colors: {
  custom: {
    50: '#8e5eaf',
    500: '#5a168c',
    950: '#000000',
  },
}
SCSS
$custom: #5a168c;
$custom-light: #8e5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a168c",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 274.576,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38242,
    "c": 0.1773,
    "h": 305
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#5A168C
secondary
#75C03E
accent
#F03886
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A168C

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

Preview Lab → · Contrast checker → · Palette generator →

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