#5A177F#5A177F

#5A177F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.164 H 309.7°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#5A177F
RGBrgb(90, 23, 127)
HSLhsl(279, 69%, 29%)
HSVhsv(279, 82%, 50%)
CMYKcmyk(29.1%, 81.9%, 0%, 50.2%)
CIE-LABlab(24.70, 46.87, -44.40)
CIE-LCHlch(24.70, 64.56, 316.55°)
OKLaboklab(37.21% 0.1045 -0.126)
OKLCHoklch(37.21% 0.164 309.7)
XYZxyz(8.3528, 4.3189, 20.4682)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A177F #3C7F17
analogous
#26177F #5A177F #7F1770
triadic
#5A177F #7F5A17 #177F5A
tetradic
#5A177F #7F2617 #3C7F17 #17707F
square
#5A177F #7F2617 #3C7F17 #17707F
split-complementary
#5A177F #707F17 #177F26
monochromatic
#12051A #350E4B #5A177F #7F20B3 #A036DB

Accessibility & contrast

On white

11.27
#5A177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5A177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A177F
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A177F#FFFFFF#000000##FFFFFF
##5A177F1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#55314B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a177f;
/* rgb */ color: rgb(90, 23, 127);
/* oklch */ color: oklch(37.2% 0.164 309.7);
Tailwind
colors: {
  custom: {
    50: '#8d5da5',
    500: '#5a177f',
    950: '#000000',
  },
}
SCSS
$custom: #5a177f;
$custom-light: #8d5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a177f",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 278.654,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3721,
    "c": 0.16375,
    "h": 309.7
  },
  "luminance": 0.04319
}

Semantic roles & 50–950 ramp

primary
#5A177F
secondary
#68B43E
accent
#EC3C7A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A177F

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

Preview Lab → · Contrast checker → · Palette generator →

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