#5A2BB4#5A2BB4

#5A2BB4 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.199 H 291.6°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#5A2BB4
RGBrgb(90, 43, 180)
HSLhsl(261, 61%, 44%)
HSVhsv(261, 76%, 71%)
CMYKcmyk(50%, 76.1%, 0%, 29.4%)
CIE-LABlab(32.25, 51.72, -64.52)
CIE-LCHlch(32.25, 82.69, 308.72°)
OKLaboklab(43.92% 0.0734 -0.1853)
OKLCHoklch(43.92% 0.199 291.6)
XYZxyz(13.3162, 7.1962, 43.8585)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BB4 #85B42B
analogous
#2B40B4 #5A2BB4 #9E2BB4
triadic
#5A2BB4 #B45A2B #2BB45A
tetradic
#5A2BB4 #B42B40 #85B42B #2BB49E
square
#5A2BB4 #B42B40 #85B42B #2BB49E
split-complementary
#5A2BB4 #B49E2B #40B42B
monochromatic
#291351 #411F83 #5A2BB4 #7849D3 #9D7ADF

Accessibility & contrast

On white

8.61
#5A2BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5A2BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2BB4
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BB4#FFFFFF#000000##FFFFFF
##5A2BB41.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0049B1
Tritanopia (blue-blind)
#3C516E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2bb4;
/* rgb */ color: rgb(90, 43, 180);
/* oklch */ color: oklch(43.9% 0.199 291.6);
Tailwind
colors: {
  custom: {
    50: '#926acc',
    500: '#5a2bb4',
    950: '#000000',
  },
}
SCSS
$custom: #5a2bb4;
$custom-light: #926acc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2bb4",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 260.584,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43923,
    "c": 0.19926,
    "h": 291.6
  },
  "luminance": 0.07197
}

Semantic roles & 50–950 ramp

primary
#5A2BB4
secondary
#ABC773
accent
#E543AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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