#5A2BA2#5A2BA2

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

Color values

HEX#5A2BA2
RGBrgb(90, 43, 162)
HSLhsl(264, 58%, 40%)
HSVhsv(264, 73%, 64%)
CMYKcmyk(44.4%, 73.5%, 0%, 36.5%)
CIE-LABlab(30.66, 46.88, -56.31)
CIE-LCHlch(30.66, 73.27, 309.78°)
OKLaboklab(42.32% 0.0778 -0.1612)
OKLCHoklch(42.32% 0.179 295.8)
XYZxyz(11.6002, 6.5098, 34.8207)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BA2 #73A22B
analogous
#2B38A2 #5A2BA2 #952BA2
triadic
#5A2BA2 #A25A2B #2BA25A
tetradic
#5A2BA2 #A22B38 #73A22B #2BA295
square
#5A2BA2 #A22B38 #73A22B #2BA295
split-complementary
#5A2BA2 #A2952B #38A22B
monochromatic
#241141 #3F1E72 #5A2BA2 #763ECC #996FD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A2BA2#FFFFFF#000000##FFFFFF
##5A2BA21.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)
#0049A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#464A64
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2ba2;
/* rgb */ color: rgb(90, 43, 162);
/* oklch */ color: oklch(42.3% 0.179 295.8);
Tailwind
colors: {
  custom: {
    50: '#8f69be',
    500: '#5a2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ba2;
$custom-light: #8f69be;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ba2",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 263.697,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42319,
    "c": 0.17899,
    "h": 295.8
  },
  "luminance": 0.0651
}

Semantic roles & 50–950 ramp

primary
#5A2BA2
secondary
#9EC069
accent
#E147A4
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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