#5A2BA3#5A2BA3

#5A2BA3 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.180 H 295.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5A2BA3
RGBrgb(90, 43, 163)
HSLhsl(264, 58%, 40%)
HSVhsv(264, 74%, 64%)
CMYKcmyk(44.8%, 73.6%, 0%, 36.1%)
CIE-LABlab(30.75, 47.15, -56.78)
CIE-LCHlch(30.75, 73.80, 309.70°)
OKLaboklab(42.41% 0.0776 -0.1626)
OKLCHoklch(42.41% 0.18 295.5)
XYZxyz(11.6894, 6.5455, 35.2907)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BA3 #74A32B
analogous
#2B38A3 #5A2BA3 #962BA3
triadic
#5A2BA3 #A35A2B #2BA35A
tetradic
#5A2BA3 #A32B38 #74A32B #2BA396
square
#5A2BA3 #A32B38 #74A32B #2BA396
split-complementary
#5A2BA3 #A3962B #38A32B
monochromatic
#251142 #3F1E73 #5A2BA3 #763FCC #996FD9

Accessibility & contrast

On white

9.09
#5A2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5A2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2BA3
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BA3#FFFFFF#000000##FFFFFF
##5A2BA31.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#464A64
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2ba3;
/* rgb */ color: rgb(90, 43, 163);
/* oklch */ color: oklch(42.4% 0.180 295.5);
Tailwind
colors: {
  custom: {
    50: '#9069bf',
    500: '#5a2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ba3;
$custom-light: #9069bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ba3",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 263.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42406,
    "c": 0.18013,
    "h": 295.5
  },
  "luminance": 0.06546
}

Semantic roles & 50–950 ramp

primary
#5A2BA3
secondary
#9EC06A
accent
#E146A5
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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