#5A2BAB#5A2BAB

#5A2BAB is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.189 H 293.6°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5A2BAB
RGBrgb(90, 43, 171)
HSLhsl(262, 60%, 42%)
HSVhsv(262, 75%, 67%)
CMYKcmyk(47.4%, 74.9%, 0%, 32.9%)
CIE-LABlab(31.44, 49.29, -60.46)
CIE-LCHlch(31.44, 78.01, 309.19°)
OKLaboklab(43.11% 0.0757 -0.1734)
OKLCHoklch(43.11% 0.189 293.6)
XYZxyz(12.4290, 6.8413, 39.1858)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BAB #7CAB2B
analogous
#2B3CAB #5A2BAB #9A2BAB
triadic
#5A2BAB #AB5A2B #2BAB5A
tetradic
#5A2BAB #AB2B3C #7CAB2B #2BAB9A
square
#5A2BAB #AB2B3C #7CAB2B #2BAB9A
split-complementary
#5A2BAB #AB9A2B #3CAB2B
monochromatic
#271249 #401F7A #5A2BAB #7743D0 #9A74DC

Accessibility & contrast

On white

8.87
#5A2BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5A2BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2BAB
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BAB#FFFFFF#000000##FFFFFF
##5A2BAB1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#424D69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2bab;
/* rgb */ color: rgb(90, 43, 171);
/* oklch */ color: oklch(43.1% 0.189 293.6);
Tailwind
colors: {
  custom: {
    50: '#9169c5',
    500: '#5a2bab',
    950: '#000000',
  },
}
SCSS
$custom: #5a2bab;
$custom-light: #9169c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2bab",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 262.031,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4311,
    "c": 0.18917,
    "h": 293.6
  },
  "luminance": 0.06842
}

Semantic roles & 50–950 ramp

primary
#5A2BAB
secondary
#A4C46E
accent
#E345A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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