#5D289A#5D289A

#5D289A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.174 H 300.0°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5D289A
RGBrgb(93, 40, 154)
HSLhsl(268, 59%, 38%)
HSVhsv(268, 74%, 60%)
CMYKcmyk(39.6%, 74%, 0%, 39.6%)
CIE-LABlab(29.86, 46.77, -52.75)
CIE-LCHlch(29.86, 70.50, 311.56°)
OKLaboklab(41.62% 0.0869 -0.1506)
OKLCHoklch(41.62% 0.174 300)
XYZxyz(11.1043, 6.1777, 31.1730)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D289A #659A28
analogous
#282C9A #5D289A #96289A
triadic
#5D289A #9A5D28 #289A5D
tetradic
#5D289A #9A282C #659A28 #289A96
square
#5D289A #9A282C #659A28 #289A96
split-complementary
#5D289A #9A9628 #2C9A28
monochromatic
#220F39 #401B69 #5D289A #7A35CA #9A65D7

Accessibility & contrast

On white

9.39
#5D289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5D289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D289A
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D289A#FFFFFF#000000##FFFFFF
##5D289A1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004598
Tritanopia (blue-blind)
#4F455F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d289a;
/* rgb */ color: rgb(93, 40, 154);
/* oklch */ color: oklch(41.6% 0.174 300.0);
Tailwind
colors: {
  custom: {
    50: '#9167b9',
    500: '#5d289a',
    950: '#000000',
  },
}
SCSS
$custom: #5d289a;
$custom-light: #9167b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d289a",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 267.895,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41623,
    "c": 0.17388,
    "h": 300
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

primary
#5D289A
secondary
#92BD61
accent
#E24699
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D289A

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

Preview Lab → · Contrast checker → · Palette generator →

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