#5A2ABC#5A2ABC

#5A2ABC is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.209 H 290.1°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5A2ABC
RGBrgb(90, 42, 188)
HSLhsl(260, 63%, 45%)
HSVhsv(260, 78%, 74%)
CMYKcmyk(52.1%, 77.7%, 0%, 26.3%)
CIE-LABlab(32.83, 54.32, -68.30)
CIE-LCHlch(32.83, 87.27, 308.50°)
OKLaboklab(44.56% 0.0719 -0.1963)
OKLCHoklch(44.56% 0.209 290.1)
XYZxyz(14.1189, 7.4598, 48.2631)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2ABC #8CBC2A
analogous
#2A43BC #5A2ABC #A32ABC
triadic
#5A2ABC #BC5A2A #2ABC5A
tetradic
#5A2ABC #BC2A43 #8CBC2A #2ABCA3
square
#5A2ABC #BC2A43 #8CBC2A #2ABCA3
split-complementary
#5A2ABC #BCA32A #43BC2A
monochromatic
#2A1458 #421F8A #5A2ABC #7A4CD7 #9F7EE2

Accessibility & contrast

On white

8.43
#5A2ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5A2ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2ABC
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2ABC#FFFFFF#000000##FFFFFF
##5A2ABC1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C0
Deuteranopia (green-blind)
#004AB9
Tritanopia (blue-blind)
#365472
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a2abc;
/* rgb */ color: rgb(90, 42, 188);
/* oklch */ color: oklch(44.6% 0.209 290.1);
Tailwind
colors: {
  custom: {
    50: '#936ad1',
    500: '#5a2abc',
    950: '#000000',
  },
}
SCSS
$custom: #5a2abc;
$custom-light: #936ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2abc",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 259.726,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44556,
    "c": 0.20907,
    "h": 290.1
  },
  "luminance": 0.0746
}

Semantic roles & 50–950 ramp

primary
#5A2ABC
secondary
#AFCB77
accent
#E741B0
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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