#5A2B7A#5A2B7A

#5A2B7A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.2% C 0.133 H 308.9°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5A2B7A
RGBrgb(90, 43, 122)
HSLhsl(276, 48%, 32%)
HSVhsv(276, 65%, 48%)
CMYKcmyk(26.2%, 64.8%, 0%, 52.2%)
CIE-LABlab(27.59, 36.51, -36.57)
CIE-LCHlch(27.59, 51.67, 314.96°)
OKLaboklab(39.15% 0.0834 -0.1032)
OKLCHoklch(39.15% 0.133 308.9)
XYZxyz(8.5925, 5.3067, 18.9802)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2B7A #4B7A2B
analogous
#322B7A #5A2B7A #7A2B73
triadic
#5A2B7A #7A5A2B #2B7A5A
tetradic
#5A2B7A #7A322B #4B7A2B #2B737A
square
#5A2B7A #7A322B #4B7A2B #2B737A
split-complementary
#5A2B7A #737A2B #2B7A32
monochromatic
#170B1F #391B4D #5A2B7A #7B3BA7 #9A5AC5

Accessibility & contrast

On white

10.19
#5A2B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5A2B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2B7A
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2B7A#FFFFFF#000000##FFFFFF
##5A2B7A1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043F7C
Deuteranopia (green-blind)
#1F4278
Tritanopia (blue-blind)
#553B4E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a2b7a;
/* rgb */ color: rgb(90, 43, 122);
/* oklch */ color: oklch(39.2% 0.133 308.9);
Tailwind
colors: {
  custom: {
    50: '#8b67a1',
    500: '#5a2b7a',
    950: '#000000',
  },
}
SCSS
$custom: #5a2b7a;
$custom-light: #8b67a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2b7a",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 275.696,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39154,
    "c": 0.13264,
    "h": 308.9
  },
  "luminance": 0.05307
}

Semantic roles & 50–950 ramp

primary
#5A2B7A
secondary
#78AB56
accent
#D75087
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060F
muted
#7D7A7E

Preview Lab

Preview with #5A2B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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