#5D2298#5D2298

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

Color values

HEX#5D2298
RGBrgb(93, 34, 152)
HSLhsl(270, 63%, 36%)
HSVhsv(270, 78%, 60%)
CMYKcmyk(38.8%, 77.6%, 0%, 40.4%)
CIE-LABlab(28.74, 48.97, -53.35)
CIE-LCHlch(28.74, 72.41, 312.55°)
OKLaboklab(40.79% 0.093 -0.1523)
OKLCHoklch(40.79% 0.178 301.4)
XYZxyz(10.7523, 5.7381, 30.2408)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2298 #5D9822
analogous
#222298 #5D2298 #982298
triadic
#5D2298 #985D22 #22985D
tetradic
#5D2298 #982222 #5D9822 #229898
square
#5D2298 #982222 #5D9822 #229898
split-complementary
#5D2298 #989822 #229822
monochromatic
#200C34 #3E1766 #5D2298 #7C2DCA #9A5ADA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D2298#FFFFFF#000000##FFFFFF
##5D22981.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)
#00439B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#50415C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2298;
/* rgb */ color: rgb(93, 34, 152);
/* oklch */ color: oklch(40.8% 0.178 301.4);
Tailwind
colors: {
  custom: {
    50: '#9164b7',
    500: '#5d2298',
    950: '#000000',
  },
}
SCSS
$custom: #5d2298;
$custom-light: #9164b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2298",
  "rgb": {
    "r": 93,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 270,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40786,
    "c": 0.17844,
    "h": 301.4
  },
  "luminance": 0.05738
}

Semantic roles & 50–950 ramp

primary
#5D2298
secondary
#8BBE57
accent
#E64194
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2298

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

Preview Lab → · Contrast checker → · Palette generator →

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