#5D2CA8#5D2CA8

#5D2CA8 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.185 H 295.6°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5D2CA8
RGBrgb(93, 44, 168)
HSLhsl(264, 58%, 42%)
HSVhsv(264, 74%, 66%)
CMYKcmyk(44.6%, 73.8%, 0%, 34.1%)
CIE-LABlab(31.71, 48.51, -58.22)
CIE-LCHlch(31.71, 75.78, 309.80°)
OKLaboklab(43.29% 0.08 -0.1667)
OKLCHoklch(43.29% 0.185 295.6)
XYZxyz(12.4809, 6.9554, 37.7231)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2CA8 #77A82C
analogous
#2C39A8 #5D2CA8 #9B2CA8
triadic
#5D2CA8 #A85D2C #2CA85D
tetradic
#5D2CA8 #A82C39 #77A82C #2CA89B
square
#5D2CA8 #A82C39 #77A82C #2CA89B
split-complementary
#5D2CA8 #A89B2C #39A82C
monochromatic
#271347 #421F78 #5D2CA8 #7A43CE #9C74DB

Accessibility & contrast

On white

8.78
#5D2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5D2CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2CA8
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2CA8#FFFFFF#000000##FFFFFF
##5D2CA81.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#484C67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5d2ca8;
/* rgb */ color: rgb(93, 44, 168);
/* oklch */ color: oklch(43.3% 0.185 295.6);
Tailwind
colors: {
  custom: {
    50: '#926ac3',
    500: '#5d2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #5d2ca8;
$custom-light: #926ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2ca8",
  "rgb": {
    "r": 93,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 263.71,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43294,
    "c": 0.18488,
    "h": 295.6
  },
  "luminance": 0.06956
}

Semantic roles & 50–950 ramp

primary
#5D2CA8
secondary
#A1C26E
accent
#E246A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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