#5A2CA1#5A2CA1

#5A2CA1 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.177 H 295.9°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5A2CA1
RGBrgb(90, 44, 161)
HSLhsl(264, 57%, 40%)
HSVhsv(264, 73%, 63%)
CMYKcmyk(44.1%, 72.7%, 0%, 36.9%)
CIE-LABlab(30.75, 46.12, -55.56)
CIE-LCHlch(30.75, 72.21, 309.69°)
OKLaboklab(42.36% 0.0771 -0.159)
OKLCHoklch(42.36% 0.177 295.9)
XYZxyz(11.5484, 6.5480, 34.3667)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CA1 #73A12C
analogous
#2C38A1 #5A2CA1 #952CA1
triadic
#5A2CA1 #A15A2C #2CA15A
tetradic
#5A2CA1 #A12C38 #73A12C #2CA195
square
#5A2CA1 #A12C38 #73A12C #2CA195
split-complementary
#5A2CA1 #A1952C #38A12C
monochromatic
#241241 #3F1F71 #5A2CA1 #7640CB #9970D8

Accessibility & contrast

On white

9.09
#5A2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5A2CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CA1
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CA1#FFFFFF#000000##FFFFFF
##5A2CA11.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#474A64
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2ca1;
/* rgb */ color: rgb(90, 44, 161);
/* oklch */ color: oklch(42.4% 0.177 295.9);
Tailwind
colors: {
  custom: {
    50: '#8f69be',
    500: '#5a2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ca1;
$custom-light: #8f69be;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ca1",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 263.59,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42358,
    "c": 0.17669,
    "h": 295.9
  },
  "luminance": 0.06548
}

Semantic roles & 50–950 ramp

primary
#5A2CA1
secondary
#9DBF6A
accent
#E047A4
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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