#5D298E#5D298E

#5D298E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.159 H 303.6°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5D298E
RGBrgb(93, 41, 142)
HSLhsl(271, 55%, 36%)
HSVhsv(271, 71%, 56%)
CMYKcmyk(34.5%, 71.1%, 0%, 44.3%)
CIE-LABlab(29.07, 43.24, -46.66)
CIE-LCHlch(29.07, 63.61, 312.82°)
OKLaboklab(40.77% 0.0881 -0.1327)
OKLCHoklch(40.77% 0.159 303.6)
XYZxyz(10.1885, 5.8660, 26.1814)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D298E #5A8E29
analogous
#2A298E #5D298E #8E298C
triadic
#5D298E #8E5D29 #298E5D
tetradic
#5D298E #8E2A29 #5A8E29 #298C8E
square
#5D298E #8E2A29 #5A8E29 #298C8E
split-complementary
#5D298E #8C8E29 #298E2A
monochromatic
#1F0E2F #3E1B5F #5D298E #7C37BD #9A60D1

Accessibility & contrast

On white

9.66
#5D298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D298E
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D298E#FFFFFF#000000##FFFFFF
##5D298E1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#534058
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d298e;
/* rgb */ color: rgb(93, 41, 142);
/* oklch */ color: oklch(40.8% 0.159 303.6);
Tailwind
colors: {
  custom: {
    50: '#8f67b0',
    500: '#5d298e',
    950: '#000000',
  },
}
SCSS
$custom: #5d298e;
$custom-light: #8f67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d298e",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 270.891,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40767,
    "c": 0.15927,
    "h": 303.6
  },
  "luminance": 0.05866
}

Semantic roles & 50–950 ramp

primary
#5D298E
secondary
#88B75C
accent
#DF4992
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D298E

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

Preview Lab → · Contrast checker → · Palette generator →

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