#5D2A9C#5D2A9C

#5D2A9C is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.174 H 299.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#5D2A9C
RGBrgb(93, 42, 156)
HSLhsl(267, 58%, 39%)
HSVhsv(267, 73%, 61%)
CMYKcmyk(40.4%, 73.1%, 0%, 38.8%)
CIE-LABlab(30.36, 46.33, -53.15)
CIE-LCHlch(30.36, 70.51, 311.08°)
OKLaboklab(42.03% 0.0845 -0.1518)
OKLCHoklch(42.03% 0.174 299.1)
XYZxyz(11.3414, 6.3832, 32.0806)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2A9C #699C2A
analogous
#2A309C #5D2A9C #962A9C
triadic
#5D2A9C #9C5D2A #2A9C5D
tetradic
#5D2A9C #9C2A30 #699C2A #2A9C96
square
#5D2A9C #9C2A30 #699C2A #2A9C96
split-complementary
#5D2A9C #9C962A #309C2A
monochromatic
#24103C #401D6C #5D2A9C #7A39CA #9A6AD7

Accessibility & contrast

On white

9.22
#5D2A9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5D2A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2A9C
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2A9C#FFFFFF#000000##FFFFFF
##5D2A9C1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#4E4660
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d2a9c;
/* rgb */ color: rgb(93, 42, 156);
/* oklch */ color: oklch(42.0% 0.174 299.1);
Tailwind
colors: {
  custom: {
    50: '#9168ba',
    500: '#5d2a9c',
    950: '#000000',
  },
}
SCSS
$custom: #5d2a9c;
$custom-light: #9168ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2a9c",
  "rgb": {
    "r": 93,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 266.842,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42031,
    "c": 0.17373,
    "h": 299.1
  },
  "luminance": 0.06383
}

Semantic roles & 50–950 ramp

primary
#5D2A9C
secondary
#96BD65
accent
#E1479C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D2A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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