#5B298E#5B298E

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

Color values

HEX#5B298E
RGBrgb(91, 41, 142)
HSLhsl(270, 55%, 36%)
HSVhsv(270, 71%, 56%)
CMYKcmyk(35.9%, 71.1%, 0%, 44.3%)
CIE-LABlab(28.81, 42.82, -47.10)
CIE-LCHlch(28.81, 63.66, 312.28°)
OKLaboklab(40.52% 0.0852 -0.1341)
OKLCHoklch(40.52% 0.159 302.4)
XYZxyz(9.9887, 5.7630, 26.1721)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B298E #5C8E29
analogous
#29298E #5B298E #8D298E
triadic
#5B298E #8E5B29 #298E5B
tetradic
#5B298E #8E2929 #5C8E29 #298E8D
square
#5B298E #8E2929 #5C8E29 #298E8D
split-complementary
#5B298E #8E8D29 #298E29
monochromatic
#1E0E2F #3D1B5F #5B298E #7937BD #9860D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B298E#FFFFFF#000000##FFFFFF
##5B298E1.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)
#004391
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#514158
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b298e;
/* rgb */ color: rgb(91, 41, 142);
/* oklch */ color: oklch(40.5% 0.159 302.4);
Tailwind
colors: {
  custom: {
    50: '#8e67b0',
    500: '#5b298e',
    950: '#000000',
  },
}
SCSS
$custom: #5b298e;
$custom-light: #8e67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b298e",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 269.703,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40519,
    "c": 0.15885,
    "h": 302.4
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#5B298E
secondary
#8AB75C
accent
#DF4995
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B298E

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

Preview Lab → · Contrast checker → · Palette generator →

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