#5D298D#5D298D

#5D298D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.158 H 303.9°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#5D298D
RGBrgb(93, 41, 141)
HSLhsl(271, 55%, 36%)
HSVhsv(271, 71%, 55%)
CMYKcmyk(34%, 70.9%, 0%, 44.7%)
CIE-LABlab(29.00, 42.99, -46.16)
CIE-LCHlch(29.00, 63.08, 312.96°)
OKLaboklab(40.69% 0.0883 -0.1312)
OKLCHoklch(40.69% 0.158 303.9)
XYZxyz(10.1138, 5.8361, 25.7878)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D298D #598D29
analogous
#2B298D #5D298D #8D298B
triadic
#5D298D #8D5D29 #298D5D
tetradic
#5D298D #8D2B29 #598D29 #298B8D
square
#5D298D #8D2B29 #598D29 #298B8D
split-complementary
#5D298D #8B8D29 #298D2B
monochromatic
#1E0D2E #3E1B5E #5D298D #7C37BC #9A60D1

Accessibility & contrast

On white

9.69
#5D298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5D298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D298D
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D298D#FFFFFF#000000##FFFFFF
##5D298D1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#544058
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d298d;
/* rgb */ color: rgb(93, 41, 141);
/* oklch */ color: oklch(40.7% 0.158 303.9);
Tailwind
colors: {
  custom: {
    50: '#8f67af',
    500: '#5d298d',
    950: '#000000',
  },
}
SCSS
$custom: #5d298d;
$custom-light: #8f67af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d298d",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 271.2,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40688,
    "c": 0.15815,
    "h": 303.9
  },
  "luminance": 0.05836
}

Semantic roles & 50–950 ramp

primary
#5D298D
secondary
#87B65B
accent
#DE4A91
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D298D

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

Preview Lab → · Contrast checker → · Palette generator →

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