#5A2BB6#5A2BB6

#5A2BB6 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.1% C 0.201 H 291.2°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#5A2BB6
RGBrgb(90, 43, 182)
HSLhsl(260, 62%, 44%)
HSVhsv(260, 76%, 71%)
CMYKcmyk(50.5%, 76.4%, 0%, 28.6%)
CIE-LABlab(32.43, 52.25, -65.40)
CIE-LCHlch(32.43, 83.72, 308.62°)
OKLaboklab(44.11% 0.0728 -0.1879)
OKLCHoklch(44.11% 0.201 291.2)
XYZxyz(13.5214, 7.2783, 44.9393)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BB6 #87B62B
analogous
#2B41B6 #5A2BB6 #A02BB6
triadic
#5A2BB6 #B65A2B #2BB65A
tetradic
#5A2BB6 #B62B41 #87B62B #2BB6A0
square
#5A2BB6 #B62B41 #87B62B #2BB6A0
split-complementary
#5A2BB6 #B6A02B #41B62B
monochromatic
#291453 #421F84 #5A2BB6 #794AD4 #9D7BE0

Accessibility & contrast

On white

8.55
#5A2BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2BB6
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2BB6#FFFFFF#000000##FFFFFF
##5A2BB61.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#3A526F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2bb6;
/* rgb */ color: rgb(90, 43, 182);
/* oklch */ color: oklch(44.1% 0.201 291.2);
Tailwind
colors: {
  custom: {
    50: '#926acd',
    500: '#5a2bb6',
    950: '#000000',
  },
}
SCSS
$custom: #5a2bb6;
$custom-light: #926acd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2bb6",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 260.288,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44107,
    "c": 0.20148,
    "h": 291.2
  },
  "luminance": 0.07279
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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