#5A2C8D#5A2C8D

#5A2C8D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.153 H 301.6°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5A2C8D
RGBrgb(90, 44, 141)
HSLhsl(268, 52%, 36%)
HSVhsv(268, 69%, 55%)
CMYKcmyk(36.2%, 68.8%, 0%, 44.7%)
CIE-LABlab(29.15, 40.81, -45.92)
CIE-LCHlch(29.15, 61.44, 311.63°)
OKLaboklab(40.72% 0.0805 -0.1307)
OKLCHoklch(40.72% 0.153 301.6)
XYZxyz(9.9237, 5.8981, 25.8098)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2C8D #5F8D2C
analogous
#2C2F8D #5A2C8D #8B2C8D
triadic
#5A2C8D #8D5A2C #2C8D5A
tetradic
#5A2C8D #8D2C2F #5F8D2C #2C8D8B
square
#5A2C8D #8D2C2F #5F8D2C #2C8D8B
split-complementary
#5A2C8D #8D8B2C #2F8D2C
monochromatic
#1E0F30 #3C1D5E #5A2C8D #783BBC #9765CF

Accessibility & contrast

On white

9.63
#5A2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5A2C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2C8D
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2C8D#FFFFFF#000000##FFFFFF
##5A2C8D1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#4F4259
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2c8d;
/* rgb */ color: rgb(90, 44, 141);
/* oklch */ color: oklch(40.7% 0.153 301.6);
Tailwind
colors: {
  custom: {
    50: '#8d69af',
    500: '#5a2c8d',
    950: '#000000',
  },
}
SCSS
$custom: #5a2c8d;
$custom-light: #8d69af;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2c8d",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 268.454,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40715,
    "c": 0.15348,
    "h": 301.6
  },
  "luminance": 0.05898
}

Semantic roles & 50–950 ramp

primary
#5A2C8D
secondary
#8DB560
accent
#DC4C98
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #5A2C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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