#5A179E#5A179E

#5A179E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.194 H 299.2°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#5A179E
RGBrgb(90, 23, 158)
HSLhsl(270, 75%, 35%)
HSVhsv(270, 85%, 62%)
CMYKcmyk(43%, 85.4%, 0%, 38%)
CIE-LABlab(27.45, 54.09, -59.15)
CIE-LCHlch(27.45, 80.15, 312.44°)
OKLaboklab(39.97% 0.0948 -0.1693)
OKLCHoklch(39.97% 0.194 299.2)
XYZxyz(10.6928, 5.2549, 32.7921)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A179E #5B9E17
analogous
#17179E #5A179E #9D179E
triadic
#5A179E #9E5A17 #179E5A
tetradic
#5A179E #9E1717 #5B9E17 #179E9D
square
#5A179E #9E1717 #5B9E17 #179E9D
split-complementary
#5A179E #9E9D17 #179E17
monochromatic
#1D0733 #3C0F69 #5A179E #781FD3 #974BE5

Accessibility & contrast

On white

10.24
#5A179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5A179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A179E
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A179E#FFFFFF#000000##FFFFFF
##5A179E1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#493F5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a179e;
/* rgb */ color: rgb(90, 23, 158);
/* oklch */ color: oklch(40.0% 0.194 299.2);
Tailwind
colors: {
  custom: {
    50: '#905fbc',
    500: '#5a179e',
    950: '#000000',
  },
}
SCSS
$custom: #5a179e;
$custom-light: #905fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a179e",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 269.778,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39965,
    "c": 0.19409,
    "h": 299.2
  },
  "luminance": 0.05255
}

Semantic roles & 50–950 ramp

primary
#5A179E
secondary
#89C64A
accent
#F13795
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5A179E

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

Preview Lab → · Contrast checker → · Palette generator →

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