#5D289E#5D289E

#5D289E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.178 H 298.8°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#5D289E
RGBrgb(93, 40, 158)
HSLhsl(267, 60%, 39%)
HSVhsv(267, 75%, 62%)
CMYKcmyk(41.1%, 74.7%, 0%, 38%)
CIE-LABlab(30.19, 47.80, -54.65)
CIE-LCHlch(30.19, 72.60, 311.18°)
OKLaboklab(41.96% 0.086 -0.1562)
OKLCHoklch(41.96% 0.178 298.8)
XYZxyz(11.4430, 6.3132, 32.9568)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D289E #699E28
analogous
#282E9E #5D289E #98289E
triadic
#5D289E #9E5D28 #289E5D
tetradic
#5D289E #9E282E #699E28 #289E98
square
#5D289E #9E282E #699E28 #289E98
split-complementary
#5D289E #9E9828 #2E9E28
monochromatic
#240F3C #401C6D #5D289E #7A37CC #9A68D9

Accessibility & contrast

On white

9.28
#5D289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5D289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D289E
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D289E#FFFFFF#000000##FFFFFF
##5D289E1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#4D4661
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d289e;
/* rgb */ color: rgb(93, 40, 158);
/* oklch */ color: oklch(42.0% 0.178 298.8);
Tailwind
colors: {
  custom: {
    50: '#9167bc',
    500: '#5d289e',
    950: '#000000',
  },
}
SCSS
$custom: #5d289e;
$custom-light: #9167bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d289e",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 266.949,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41962,
    "c": 0.17829,
    "h": 298.8
  },
  "luminance": 0.06313
}

Semantic roles & 50–950 ramp

primary
#5D289E
secondary
#96BF63
accent
#E3459C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D289E

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

Preview Lab → · Contrast checker → · Palette generator →

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