#5A2CA3#5A2CA3

#5A2CA3 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.179 H 295.4°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5A2CA3
RGBrgb(90, 44, 163)
HSLhsl(263, 57%, 41%)
HSVhsv(263, 73%, 64%)
CMYKcmyk(44.8%, 73%, 0%, 36.1%)
CIE-LABlab(30.92, 46.65, -56.50)
CIE-LCHlch(30.92, 73.27, 309.55°)
OKLaboklab(42.53% 0.0767 -0.1617)
OKLCHoklch(42.53% 0.179 295.4)
XYZxyz(11.7262, 6.6191, 35.3030)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CA3 #75A32C
analogous
#2C3AA3 #5A2CA3 #952CA3
triadic
#5A2CA3 #A35A2C #2CA35A
tetradic
#5A2CA3 #A32C3A #75A32C #2CA395
square
#5A2CA3 #A32C3A #75A32C #2CA395
split-complementary
#5A2CA3 #A3952C #3AA32C
monochromatic
#251243 #3F1F73 #5A2CA3 #7641CC #9971D9

Accessibility & contrast

On white

9.04
#5A2CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5A2CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CA3
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CA3#FFFFFF#000000##FFFFFF
##5A2CA31.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#464B65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2ca3;
/* rgb */ color: rgb(90, 44, 163);
/* oklch */ color: oklch(42.5% 0.179 295.4);
Tailwind
colors: {
  custom: {
    50: '#8f69bf',
    500: '#5a2ca3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ca3;
$custom-light: #8f69bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ca3",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 263.193,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42529,
    "c": 0.17897,
    "h": 295.4
  },
  "luminance": 0.06619
}

Semantic roles & 50–950 ramp

primary
#5A2CA3
secondary
#9FC06B
accent
#E147A5
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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