#5A168F#5A168F

#5A168F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.180 H 304.0°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#5A168F
RGBrgb(90, 22, 143)
HSLhsl(274, 73%, 32%)
HSVhsv(274, 85%, 56%)
CMYKcmyk(37.1%, 84.6%, 0%, 43.9%)
CIE-LABlab(25.95, 50.88, -52.37)
CIE-LCHlch(25.95, 73.02, 314.17°)
OKLaboklab(38.51% 0.1007 -0.1495)
OKLCHoklch(38.51% 0.18 304)
XYZxyz(9.4601, 4.7307, 26.3960)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A168F #4B8F16
analogous
#1E168F #5A168F #8F1688
triadic
#5A168F #8F5A16 #168F5A
tetradic
#5A168F #8F1E16 #4B8F16 #16888F
square
#5A168F #8F1E16 #4B8F16 #16888F
split-complementary
#5A168F #888F16 #168F1E
monochromatic
#170625 #390E5A #5A168F #7B1EC4 #9A3EE1

Accessibility & contrast

On white

10.79
#5A168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5A168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A168F
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A168F#FFFFFF#000000##FFFFFF
##5A168F1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#4F3854
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a168f;
/* rgb */ color: rgb(90, 22, 143);
/* oklch */ color: oklch(38.5% 0.180 304.0);
Tailwind
colors: {
  custom: {
    50: '#8f5eb1',
    500: '#5a168f',
    950: '#000000',
  },
}
SCSS
$custom: #5a168f;
$custom-light: #8f5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a168f",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 273.719,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38509,
    "c": 0.18021,
    "h": 304
  },
  "luminance": 0.04731
}

Semantic roles & 50–950 ramp

primary
#5A168F
secondary
#78C13F
accent
#F03888
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A168F

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

Preview Lab → · Contrast checker → · Palette generator →

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