#5D2797#5D2797

#5D2797 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.172 H 301.0°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5D2797
RGBrgb(93, 39, 151)
HSLhsl(269, 59%, 37%)
HSVhsv(269, 74%, 59%)
CMYKcmyk(38.4%, 74.2%, 0%, 40.8%)
CIE-LABlab(29.44, 46.48, -51.59)
CIE-LCHlch(29.44, 69.44, 312.02°)
OKLaboklab(41.26% 0.0885 -0.1472)
OKLCHoklch(41.26% 0.172 301)
XYZxyz(10.8243, 6.0125, 29.8624)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2797 #619727
analogous
#272997 #5D2797 #952797
triadic
#5D2797 #975D27 #27975D
tetradic
#5D2797 #972729 #619727 #279795
square
#5D2797 #972729 #619727 #279795
split-complementary
#5D2797 #979527 #299727
monochromatic
#210E36 #3F1A66 #5D2797 #7B34C8 #9A62D6

Accessibility & contrast

On white

9.53
#5D2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5D2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2797
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2797#FFFFFF#000000##FFFFFF
##5D27971.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#50435D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5d2797;
/* rgb */ color: rgb(93, 39, 151);
/* oklch */ color: oklch(41.3% 0.172 301.0);
Tailwind
colors: {
  custom: {
    50: '#9066b6',
    500: '#5d2797',
    950: '#000000',
  },
}
SCSS
$custom: #5d2797;
$custom-light: #9066b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2797",
  "rgb": {
    "r": 93,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 268.929,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41255,
    "c": 0.17175,
    "h": 301
  },
  "luminance": 0.06013
}

Semantic roles & 50–950 ramp

primary
#5D2797
secondary
#8FBC5E
accent
#E24697
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2797

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

Preview Lab → · Contrast checker → · Palette generator →

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