#5A2CAC#5A2CAC

#5A2CAC is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.189 H 293.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5A2CAC
RGBrgb(90, 44, 172)
HSLhsl(262, 59%, 42%)
HSVhsv(262, 74%, 67%)
CMYKcmyk(47.7%, 74.4%, 0%, 32.5%)
CIE-LABlab(31.70, 49.08, -60.64)
CIE-LCHlch(31.70, 78.02, 308.99°)
OKLaboklab(43.32% 0.0746 -0.1739)
OKLCHoklch(43.32% 0.189 293.2)
XYZxyz(12.5615, 6.9532, 39.7020)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CAC #7EAC2C
analogous
#2C3EAC #5A2CAC #9A2CAC
triadic
#5A2CAC #AC5A2C #2CAC5A
tetradic
#5A2CAC #AC2C3E #7EAC2C #2CAC9A
square
#5A2CAC #AC2C3E #7EAC2C #2CAC9A
split-complementary
#5A2CAC #AC9A2C #3EAC2C
monochromatic
#27134B #41207B #5A2CAC #7746D0 #9B76DC

Accessibility & contrast

On white

8.78
#5A2CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5A2CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CAC
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CAC#FFFFFF#000000##FFFFFF
##5A2CAC1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#414E6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2cac;
/* rgb */ color: rgb(90, 44, 172);
/* oklch */ color: oklch(43.3% 0.189 293.2);
Tailwind
colors: {
  custom: {
    50: '#916ac6',
    500: '#5a2cac',
    950: '#000000',
  },
}
SCSS
$custom: #5a2cac;
$custom-light: #916ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2cac",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 261.563,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43318,
    "c": 0.18922,
    "h": 293.2
  },
  "luminance": 0.06954
}

Semantic roles & 50–950 ramp

primary
#5A2CAC
secondary
#A6C470
accent
#E245AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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