#5D2689#5D2689

#5D2689 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.158 H 305.8°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#5D2689
RGBrgb(93, 38, 137)
HSLhsl(273, 57%, 34%)
HSVhsv(273, 72%, 54%)
CMYKcmyk(32.1%, 72.3%, 0%, 46.3%)
CIE-LABlab(28.17, 43.46, -45.02)
CIE-LCHlch(28.17, 62.58, 313.99°)
OKLaboklab(40% 0.0922 -0.1279)
OKLCHoklch(40% 0.158 305.8)
XYZxyz(9.7217, 5.5196, 24.2153)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2689 #528926
analogous
#2C2689 #5D2689 #892684
triadic
#5D2689 #895D26 #26895D
tetradic
#5D2689 #892C26 #528926 #268489
square
#5D2689 #892C26 #528926 #268489
split-complementary
#5D2689 #848926 #26892C
monochromatic
#1C0B29 #3C1959 #5D2689 #7E33B9 #9B59D1

Accessibility & contrast

On white

9.98
#5D2689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5D2689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2689
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2689#FFFFFF#000000##FFFFFF
##5D26891.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418C
Deuteranopia (green-blind)
#004387
Tritanopia (blue-blind)
#553D55
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5d2689;
/* rgb */ color: rgb(93, 38, 137);
/* oklch */ color: oklch(40.0% 0.158 305.8);
Tailwind
colors: {
  custom: {
    50: '#8f65ac',
    500: '#5d2689',
    950: '#000000',
  },
}
SCSS
$custom: #5d2689;
$custom-light: #8f65ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2689",
  "rgb": {
    "r": 93,
    "g": 38,
    "b": 137
  },
  "hsl": {
    "h": 273.333,
    "s": 56.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40001,
    "c": 0.15763,
    "h": 305.8
  },
  "luminance": 0.0552
}

Semantic roles & 50–950 ramp

primary
#5D2689
secondary
#80B655
accent
#E0488B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2689

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

Preview Lab → · Contrast checker → · Palette generator →

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