#5A2BB3#5A2BB3

#5A2BB3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.198 H 291.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5A2BB3
RGBrgb(90, 43, 179)
HSLhsl(261, 61%, 44%)
HSVhsv(261, 76%, 70%)
CMYKcmyk(49.7%, 76%, 0%, 29.8%)
CIE-LABlab(32.16, 51.45, -64.07)
CIE-LCHlch(32.16, 82.17, 308.76°)
OKLaboklab(43.83% 0.0736 -0.1839)
OKLCHoklch(43.83% 0.198 291.8)
XYZxyz(13.2147, 7.1556, 43.3240)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BB3 #84B32B
analogous
#2B40B3 #5A2BB3 #9E2BB3
triadic
#5A2BB3 #B35A2B #2BB35A
tetradic
#5A2BB3 #B32B40 #84B32B #2BB39E
square
#5A2BB3 #B32B40 #84B32B #2BB39E
split-complementary
#5A2BB3 #B39E2B #40B32B
monochromatic
#281350 #411F82 #5A2BB3 #7848D3 #9D79DF

Accessibility & contrast

On white

8.64
#5A2BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5A2BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2BB3
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BB3#FFFFFF#000000##FFFFFF
##5A2BB31.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#3D506D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2bb3;
/* rgb */ color: rgb(90, 43, 179);
/* oklch */ color: oklch(43.8% 0.198 291.8);
Tailwind
colors: {
  custom: {
    50: '#926acb',
    500: '#5a2bb3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2bb3;
$custom-light: #926acb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2bb3",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 260.735,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43832,
    "c": 0.19814,
    "h": 291.8
  },
  "luminance": 0.07156
}

Semantic roles & 50–950 ramp

primary
#5A2BB3
secondary
#AAC773
accent
#E443AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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