#5A1C9F#5A1C9F

#5A1C9F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.191 H 298.5°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5A1C9F
RGBrgb(90, 28, 159)
HSLhsl(268, 70%, 37%)
HSVhsv(268, 82%, 62%)
CMYKcmyk(43.4%, 82.4%, 0%, 37.6%)
CIE-LABlab(28.13, 52.60, -58.63)
CIE-LCHlch(28.13, 78.77, 311.90°)
OKLaboklab(40.47% 0.0911 -0.1679)
OKLCHoklch(40.47% 0.191 298.5)
XYZxyz(10.8881, 5.5072, 33.2835)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1C9F #619F1C
analogous
#1C209F #5A1C9F #9C1C9F
triadic
#5A1C9F #9F5A1C #1C9F5A
tetradic
#5A1C9F #9F1C20 #619F1C #1C9F9C
square
#5A1C9F #9F1C20 #619F1C #1C9F9C
split-complementary
#5A1C9F #9F9C1C #209F1C
monochromatic
#1F0A37 #3D136B #5A1C9F #7725D3 #9754E1

Accessibility & contrast

On white

9.99
#5A1C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5A1C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1C9F
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1C9F#FFFFFF#000000##FFFFFF
##5A1C9F1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#48425F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a1c9f;
/* rgb */ color: rgb(90, 28, 159);
/* oklch */ color: oklch(40.5% 0.191 298.5);
Tailwind
colors: {
  custom: {
    50: '#9061bc',
    500: '#5a1c9f',
    950: '#000000',
  },
}
SCSS
$custom: #5a1c9f;
$custom-light: #9061bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1c9f",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 159
  },
  "hsl": {
    "h": 268.397,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40466,
    "c": 0.19103,
    "h": 298.5
  },
  "luminance": 0.05507
}

Semantic roles & 50–950 ramp

primary
#5A1C9F
secondary
#8EC453
accent
#ED3B99
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5A1C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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