#5A2CA0#5A2CA0

#5A2CA0 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.176 H 296.1°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5A2CA0
RGBrgb(90, 44, 160)
HSLhsl(264, 57%, 40%)
HSVhsv(264, 73%, 63%)
CMYKcmyk(43.7%, 72.5%, 0%, 37.3%)
CIE-LABlab(30.67, 45.85, -55.09)
CIE-LCHlch(30.67, 71.67, 309.77°)
OKLaboklab(42.27% 0.0773 -0.1576)
OKLCHoklch(42.27% 0.176 296.1)
XYZxyz(11.4606, 6.5128, 33.9042)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CA0 #72A02C
analogous
#2C38A0 #5A2CA0 #942CA0
triadic
#5A2CA0 #A05A2C #2CA05A
tetradic
#5A2CA0 #A02C38 #72A02C #2CA094
square
#5A2CA0 #A02C38 #72A02C #2CA094
split-complementary
#5A2CA0 #A0942C #38A02C
monochromatic
#241240 #3F1F70 #5A2CA0 #763FCA #986FD7

Accessibility & contrast

On white

9.12
#5A2CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5A2CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CA0
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CA0#FFFFFF#000000##FFFFFF
##5A2CA01.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#474963
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2ca0;
/* rgb */ color: rgb(90, 44, 160);
/* oklch */ color: oklch(42.3% 0.176 296.1);
Tailwind
colors: {
  custom: {
    50: '#8f69bd',
    500: '#5a2ca0',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ca0;
$custom-light: #8f69bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ca0",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 160
  },
  "hsl": {
    "h": 263.793,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.42272,
    "c": 0.17554,
    "h": 296.1
  },
  "luminance": 0.06513
}

Semantic roles & 50–950 ramp

primary
#5A2CA0
secondary
#9DBF69
accent
#E048A4
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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