#5A1CA1#5A1CA1

#5A1CA1 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.193 H 297.9°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#5A1CA1
RGBrgb(90, 28, 161)
HSLhsl(268, 70%, 37%)
HSVhsv(268, 83%, 63%)
CMYKcmyk(44.1%, 82.6%, 0%, 36.9%)
CIE-LABlab(28.32, 53.09, -59.55)
CIE-LCHlch(28.32, 79.78, 311.72°)
OKLaboklab(40.65% 0.0905 -0.1706)
OKLCHoklch(40.65% 0.193 297.9)
XYZxyz(11.0630, 5.5772, 34.2049)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1CA1 #63A11C
analogous
#1C21A1 #5A1CA1 #9D1CA1
triadic
#5A1CA1 #A15A1C #1CA15A
tetradic
#5A1CA1 #A11C21 #63A11C #1CA19D
square
#5A1CA1 #A11C21 #63A11C #1CA19D
split-complementary
#5A1CA1 #A19D1C #21A11C
monochromatic
#200A39 #3D136D #5A1CA1 #7725D5 #9756E2

Accessibility & contrast

On white

9.93
#5A1CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5A1CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1CA1
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1CA1#FFFFFF#000000##FFFFFF
##5A1CA11.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#474360
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a1ca1;
/* rgb */ color: rgb(90, 28, 161);
/* oklch */ color: oklch(40.7% 0.193 297.9);
Tailwind
colors: {
  custom: {
    50: '#9061be',
    500: '#5a1ca1',
    950: '#000000',
  },
}
SCSS
$custom: #5a1ca1;
$custom-light: #9061be;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1ca1",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 267.97,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40652,
    "c": 0.19307,
    "h": 297.9
  },
  "luminance": 0.05577
}

Semantic roles & 50–950 ramp

primary
#5A1CA1
secondary
#90C554
accent
#ED3B9A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5A1CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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