#5A2B9D#5A2B9D

#5A2B9D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.173 H 297.1°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#5A2B9D
RGBrgb(90, 43, 157)
HSLhsl(265, 57%, 39%)
HSVhsv(265, 73%, 62%)
CMYKcmyk(42.7%, 72.6%, 0%, 38.4%)
CIE-LABlab(30.24, 45.54, -53.97)
CIE-LCHlch(30.24, 70.62, 310.16°)
OKLaboklab(41.89% 0.0789 -0.1543)
OKLCHoklch(41.89% 0.173 297.1)
XYZxyz(11.1645, 6.3355, 32.5264)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B9D #6E9D2B
analogous
#2B359D #5A2B9D #932B9D
triadic
#5A2B9D #9D5A2B #2B9D5A
tetradic
#5A2B9D #9D2B35 #6E9D2B #2B9D93
square
#5A2B9D #9D2B35 #6E9D2B #2B9D93
split-complementary
#5A2B9D #9D932B #359D2B
monochromatic
#23113D #3E1E6D #5A2B9D #763CCA #986CD7

Accessibility & contrast

On white

9.26
#5A2B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5A2B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B9D
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B9D#FFFFFF#000000##FFFFFF
##5A2B9D1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#494861
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a2b9d;
/* rgb */ color: rgb(90, 43, 157);
/* oklch */ color: oklch(41.9% 0.173 297.1);
Tailwind
colors: {
  custom: {
    50: '#8f69bb',
    500: '#5a2b9d',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b9d;
$custom-light: #8f69bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b9d",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 264.737,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41891,
    "c": 0.17329,
    "h": 297.1
  },
  "luminance": 0.06336
}

Semantic roles & 50–950 ramp

primary
#5A2B9D
secondary
#9ABD66
accent
#E048A1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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