#5D288D#5D288D

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

Color values

HEX#5D288D
RGBrgb(93, 40, 141)
HSLhsl(271, 56%, 35%)
HSVhsv(271, 72%, 55%)
CMYKcmyk(34%, 71.6%, 0%, 44.7%)
CIE-LABlab(28.82, 43.48, -46.45)
CIE-LCHlch(28.82, 63.62, 313.11°)
OKLaboklab(40.56% 0.0894 -0.1321)
OKLCHoklch(40.56% 0.159 304.1)
XYZxyz(10.0796, 5.7679, 25.7764)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D288D #588D28
analogous
#2A288D #5D288D #8D288A
triadic
#5D288D #8D5D28 #288D5D
tetradic
#5D288D #8D2A28 #588D28 #288A8D
square
#5D288D #8D2A28 #588D28 #288A8D
split-complementary
#5D288D #8A8D28 #288D2A
monochromatic
#1E0D2E #3E1A5D #5D288D #7C36BD #9B5ED1

Accessibility & contrast

On white

9.75
#5D288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D288D
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D288D#FFFFFF#000000##FFFFFF
##5D288D1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#543F57
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d288d;
/* rgb */ color: rgb(93, 40, 141);
/* oklch */ color: oklch(40.6% 0.159 304.1);
Tailwind
colors: {
  custom: {
    50: '#8f67af',
    500: '#5d288d',
    950: '#000000',
  },
}
SCSS
$custom: #5d288d;
$custom-light: #8f67af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d288d",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 271.485,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40562,
    "c": 0.15946,
    "h": 304.1
  },
  "luminance": 0.05768
}

Semantic roles & 50–950 ramp

primary
#5D288D
secondary
#86B75A
accent
#DF4990
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D288D

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

Preview Lab → · Contrast checker → · Palette generator →

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