#5A2BB5#5A2BB5

#5A2BB5 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.0% C 0.200 H 291.4°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#5A2BB5
RGBrgb(90, 43, 181)
HSLhsl(260, 62%, 44%)
HSVhsv(260, 76%, 71%)
CMYKcmyk(50.3%, 76.2%, 0%, 29%)
CIE-LABlab(32.34, 51.98, -64.96)
CIE-LCHlch(32.34, 83.20, 308.67°)
OKLaboklab(44.02% 0.0731 -0.1866)
OKLCHoklch(44.02% 0.2 291.4)
XYZxyz(13.4184, 7.2371, 44.3970)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BB5 #86B52B
analogous
#2B41B5 #5A2BB5 #9F2BB5
triadic
#5A2BB5 #B55A2B #2BB55A
tetradic
#5A2BB5 #B52B41 #86B52B #2BB59F
square
#5A2BB5 #B52B41 #86B52B #2BB59F
split-complementary
#5A2BB5 #B59F2B #41B52B
monochromatic
#291452 #411F84 #5A2BB5 #7949D4 #9D7BE0

Accessibility & contrast

On white

8.58
#5A2BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5A2BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2BB5
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BB5#FFFFFF#000000##FFFFFF
##5A2BB51.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#3B516F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2bb5;
/* rgb */ color: rgb(90, 43, 181);
/* oklch */ color: oklch(44.0% 0.200 291.4);
Tailwind
colors: {
  custom: {
    50: '#926acc',
    500: '#5a2bb5',
    950: '#000000',
  },
}
SCSS
$custom: #5a2bb5;
$custom-light: #926acc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2bb5",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 260.435,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44015,
    "c": 0.20036,
    "h": 291.4
  },
  "luminance": 0.07238
}

Semantic roles & 50–950 ramp

primary
#5A2BB5
secondary
#ABC874
accent
#E543AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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