#5D2A88#5D2A88

#5D2A88 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.151 H 305.5°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5D2A88
RGBrgb(93, 42, 136)
HSLhsl(273, 53%, 35%)
HSVhsv(273, 69%, 53%)
CMYKcmyk(31.6%, 69.1%, 0%, 46.7%)
CIE-LABlab(28.80, 41.23, -43.38)
CIE-LCHlch(28.80, 59.85, 313.55°)
OKLaboklab(40.43% 0.0878 -0.123)
OKLCHoklch(40.43% 0.151 305.5)
XYZxyz(9.7851, 5.7607, 23.8842)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2A88 #55882A
analogous
#2E2A88 #5D2A88 #882A84
triadic
#5D2A88 #885D2A #2A885D
tetradic
#5D2A88 #882E2A #55882A #2A8488
square
#5D2A88 #882E2A #55882A #2A8488
split-complementary
#5D2A88 #84882A #2A882E
monochromatic
#1D0D2A #3D1C59 #5D2A88 #7D38B7 #9B5FCE

Accessibility & contrast

On white

9.76
#5D2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5D2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2A88
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2A88#FFFFFF#000000##FFFFFF
##5D2A881.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#0D4486
Tritanopia (blue-blind)
#553F55
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2a88;
/* rgb */ color: rgb(93, 42, 136);
/* oklch */ color: oklch(40.4% 0.151 305.5);
Tailwind
colors: {
  custom: {
    50: '#8f67ab',
    500: '#5d2a88',
    950: '#000000',
  },
}
SCSS
$custom: #5d2a88;
$custom-light: #8f67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2a88",
  "rgb": {
    "r": 93,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 272.553,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4043,
    "c": 0.15115,
    "h": 305.5
  },
  "luminance": 0.05761
}

Semantic roles & 50–950 ramp

primary
#5D2A88
secondary
#83B35B
accent
#DC4C8E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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