#5A2BB7#5A2BB7

#5A2BB7 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.2% C 0.203 H 291.0°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5A2BB7
RGBrgb(90, 43, 183)
HSLhsl(260, 62%, 44%)
HSVhsv(260, 77%, 72%)
CMYKcmyk(50.8%, 76.5%, 0%, 28.2%)
CIE-LABlab(32.52, 52.52, -65.85)
CIE-LCHlch(32.52, 84.23, 308.58°)
OKLaboklab(44.2% 0.0725 -0.1892)
OKLCHoklch(44.2% 0.203 291)
XYZxyz(13.6251, 7.3198, 45.4855)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BB7 #88B72B
analogous
#2B42B7 #5A2BB7 #A02BB7
triadic
#5A2BB7 #B75A2B #2BB75A
tetradic
#5A2BB7 #B72B42 #88B72B #2BB7A0
square
#5A2BB7 #B72B42 #88B72B #2BB7A0
split-complementary
#5A2BB7 #B7A02B #42B72B
monochromatic
#291454 #421F85 #5A2BB7 #794BD5 #9E7CE0

Accessibility & contrast

On white

8.52
#5A2BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5A2BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2BB7
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BB7#FFFFFF#000000##FFFFFF
##5A2BB71.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#3A5270
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2bb7;
/* rgb */ color: rgb(90, 43, 183);
/* oklch */ color: oklch(44.2% 0.203 291.0);
Tailwind
colors: {
  custom: {
    50: '#926ace',
    500: '#5a2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #5a2bb7;
$custom-light: #926ace;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2bb7",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 260.143,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44199,
    "c": 0.20259,
    "h": 291
  },
  "luminance": 0.0732
}

Semantic roles & 50–950 ramp

primary
#5A2BB7
secondary
#ADC975
accent
#E543AF
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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