#5A2BB1#5A2BB1

#5A2BB1 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.196 H 292.2°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5A2BB1
RGBrgb(90, 43, 177)
HSLhsl(261, 61%, 43%)
HSVhsv(261, 76%, 69%)
CMYKcmyk(49.2%, 75.7%, 0%, 30.6%)
CIE-LABlab(31.98, 50.91, -63.18)
CIE-LCHlch(31.98, 81.13, 308.86°)
OKLaboklab(43.65% 0.0742 -0.1813)
OKLCHoklch(43.65% 0.196 292.2)
XYZxyz(13.0139, 7.0753, 42.2664)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BB1 #82B12B
analogous
#2B3FB1 #5A2BB1 #9D2BB1
triadic
#5A2BB1 #B15A2B #2BB15A
tetradic
#5A2BB1 #B12B3F #82B12B #2BB19D
square
#5A2BB1 #B12B3F #82B12B #2BB19D
split-complementary
#5A2BB1 #B19D2B #3FB12B
monochromatic
#28134F #411F80 #5A2BB1 #7847D2 #9C78DE

Accessibility & contrast

On white

8.69
#5A2BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5A2BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2BB1
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BB1#FFFFFF#000000##FFFFFF
##5A2BB11.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#3E506C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2bb1;
/* rgb */ color: rgb(90, 43, 177);
/* oklch */ color: oklch(43.6% 0.196 292.2);
Tailwind
colors: {
  custom: {
    50: '#9169c9',
    500: '#5a2bb1',
    950: '#000000',
  },
}
SCSS
$custom: #5a2bb1;
$custom-light: #9169c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2bb1",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 261.045,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4365,
    "c": 0.19591,
    "h": 292.2
  },
  "luminance": 0.07076
}

Semantic roles & 50–950 ramp

primary
#5A2BB1
secondary
#A9C672
accent
#E444AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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