#5A1CA0#5A1CA0

#5A1CA0 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.6% C 0.192 H 298.2°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5A1CA0
RGBrgb(90, 28, 160)
HSLhsl(268, 70%, 37%)
HSVhsv(268, 83%, 63%)
CMYKcmyk(43.7%, 82.5%, 0%, 37.3%)
CIE-LABlab(28.23, 52.85, -59.09)
CIE-LCHlch(28.23, 79.28, 311.81°)
OKLaboklab(40.56% 0.0908 -0.1692)
OKLCHoklch(40.56% 0.192 298.2)
XYZxyz(10.9752, 5.5420, 33.7424)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1CA0 #62A01C
analogous
#1C20A0 #5A1CA0 #9C1CA0
triadic
#5A1CA0 #A05A1C #1CA05A
tetradic
#5A1CA0 #A01C20 #62A01C #1CA09C
square
#5A1CA0 #A01C20 #62A01C #1CA09C
split-complementary
#5A1CA0 #A09C1C #20A01C
monochromatic
#1F0A38 #3D136C #5A1CA0 #7725D4 #9755E1

Accessibility & contrast

On white

9.96
#5A1CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5A1CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1CA0
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1CA0#FFFFFF#000000##FFFFFF
##5A1CA01.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#48425F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a1ca0;
/* rgb */ color: rgb(90, 28, 160);
/* oklch */ color: oklch(40.6% 0.192 298.2);
Tailwind
colors: {
  custom: {
    50: '#9061bd',
    500: '#5a1ca0',
    950: '#000000',
  },
}
SCSS
$custom: #5a1ca0;
$custom-light: #9061bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1ca0",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 268.182,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40559,
    "c": 0.19205,
    "h": 298.2
  },
  "luminance": 0.05542
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A1CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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