#5D288E#5D288E

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

Color values

HEX#5D288E
RGBrgb(93, 40, 142)
HSLhsl(271, 56%, 36%)
HSVhsv(271, 72%, 56%)
CMYKcmyk(34.5%, 71.8%, 0%, 44.3%)
CIE-LABlab(28.90, 43.73, -46.94)
CIE-LCHlch(28.90, 64.16, 312.97°)
OKLaboklab(40.64% 0.0892 -0.1335)
OKLCHoklch(40.64% 0.161 303.7)
XYZxyz(10.1544, 5.7978, 26.1701)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D288E #598E28
analogous
#2A288E #5D288E #8E288C
triadic
#5D288E #8E5D28 #288E5D
tetradic
#5D288E #8E2A28 #598E28 #288C8E
square
#5D288E #8E2A28 #598E28 #288C8E
split-complementary
#5D288E #8C8E28 #288E2A
monochromatic
#1E0D2F #3E1B5E #5D288E #7C35BE #9A5FD2

Accessibility & contrast

On white

9.72
#5D288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5D288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D288E
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D288E#FFFFFF#000000##FFFFFF
##5D288E1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#534058
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d288e;
/* rgb */ color: rgb(93, 40, 142);
/* oklch */ color: oklch(40.6% 0.161 303.7);
Tailwind
colors: {
  custom: {
    50: '#8f67b0',
    500: '#5d288e',
    950: '#000000',
  },
}
SCSS
$custom: #5d288e;
$custom-light: #8f67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d288e",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 271.176,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40642,
    "c": 0.16057,
    "h": 303.7
  },
  "luminance": 0.05798
}

Semantic roles & 50–950 ramp

primary
#5D288E
secondary
#87B75B
accent
#DF4891
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D288E

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

Preview Lab → · Contrast checker → · Palette generator →

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