#5B298D#5B298D

#5B298D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.158 H 302.8°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5B298D
RGBrgb(91, 41, 141)
HSLhsl(270, 55%, 36%)
HSVhsv(270, 71%, 55%)
CMYKcmyk(35.5%, 70.9%, 0%, 44.7%)
CIE-LABlab(28.73, 42.57, -46.61)
CIE-LCHlch(28.73, 63.12, 312.41°)
OKLaboklab(40.44% 0.0854 -0.1326)
OKLCHoklch(40.44% 0.158 302.8)
XYZxyz(9.9139, 5.7331, 25.7784)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B298D #5B8D29
analogous
#29298D #5B298D #8D298D
triadic
#5B298D #8D5B29 #298D5B
tetradic
#5B298D #8D2929 #5B8D29 #298D8D
square
#5B298D #8D2929 #5B8D29 #298D8D
split-complementary
#5B298D #8D8D29 #298D29
monochromatic
#1E0D2E #3C1B5E #5B298D #7A37BC #9860D1

Accessibility & contrast

On white

9.78
#5B298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B298D
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B298D#FFFFFF#000000##FFFFFF
##5B298D1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b298d;
/* rgb */ color: rgb(91, 41, 141);
/* oklch */ color: oklch(40.4% 0.158 302.8);
Tailwind
colors: {
  custom: {
    50: '#8e67af',
    500: '#5b298d',
    950: '#000000',
  },
}
SCSS
$custom: #5b298d;
$custom-light: #8e67af;
$custom-dark: #000000;
JSON
{
  "hex": "#5b298d",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 270,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4044,
    "c": 0.15771,
    "h": 302.8
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#5B298D
secondary
#89B65B
accent
#DE4A94
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B298D

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

Preview Lab → · Contrast checker → · Palette generator →

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