#5D289C#5D289C

#5D289C is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.176 H 299.4°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5D289C
RGBrgb(93, 40, 156)
HSLhsl(267, 59%, 38%)
HSVhsv(267, 74%, 61%)
CMYKcmyk(40.4%, 74.4%, 0%, 38.8%)
CIE-LABlab(30.02, 47.28, -53.70)
CIE-LCHlch(30.02, 71.55, 311.36°)
OKLaboklab(41.79% 0.0865 -0.1534)
OKLCHoklch(41.79% 0.176 299.4)
XYZxyz(11.2722, 6.2449, 32.0576)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D289C #679C28
analogous
#282D9C #5D289C #97289C
triadic
#5D289C #9C5D28 #289C5D
tetradic
#5D289C #9C282D #679C28 #289C97
square
#5D289C #9C282D #679C28 #289C97
split-complementary
#5D289C #9C9728 #2D9C28
monochromatic
#230F3B #401C6B #5D289C #7A36CB #9A67D8

Accessibility & contrast

On white

9.34
#5D289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5D289C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D289C
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D289C#FFFFFF#000000##FFFFFF
##5D289C1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#4E4560
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d289c;
/* rgb */ color: rgb(93, 40, 156);
/* oklch */ color: oklch(41.8% 0.176 299.4);
Tailwind
colors: {
  custom: {
    50: '#9167ba',
    500: '#5d289c',
    950: '#000000',
  },
}
SCSS
$custom: #5d289c;
$custom-light: #9167ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d289c",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 267.414,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41792,
    "c": 0.17609,
    "h": 299.4
  },
  "luminance": 0.06245
}

Semantic roles & 50–950 ramp

primary
#5D289C
secondary
#94BE62
accent
#E2459B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D289C

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

Preview Lab → · Contrast checker → · Palette generator →

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