#5D2E93#5D2E93

#5D2E93 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.158 H 301.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#5D2E93
RGBrgb(93, 46, 147)
HSLhsl(268, 52%, 38%)
HSVhsv(268, 69%, 58%)
CMYKcmyk(36.7%, 68.7%, 0%, 42.4%)
CIE-LABlab(30.37, 41.98, -47.63)
CIE-LCHlch(30.37, 63.49, 311.39°)
OKLaboklab(41.82% 0.0818 -0.1356)
OKLCHoklch(41.82% 0.158 301.1)
XYZxyz(10.7564, 6.3877, 28.2644)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E93 #64932E
analogous
#2E3193 #5D2E93 #902E93
triadic
#5D2E93 #935D2E #2E935D
tetradic
#5D2E93 #932E31 #64932E #2E9390
square
#5D2E93 #932E31 #64932E #2E9390
split-complementary
#5D2E93 #93902E #31932E
monochromatic
#221136 #401F64 #5D2E93 #7A3DC2 #9A6BD1

Accessibility & contrast

On white

9.22
#5D2E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5D2E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E93
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E93#FFFFFF#000000##FFFFFF
##5D2E931.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004796
Deuteranopia (green-blind)
#004791
Tritanopia (blue-blind)
#51455C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d2e93;
/* rgb */ color: rgb(93, 46, 147);
/* oklch */ color: oklch(41.8% 0.158 301.1);
Tailwind
colors: {
  custom: {
    50: '#8f6ab3',
    500: '#5d2e93',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e93;
$custom-light: #8f6ab3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e93",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 147
  },
  "hsl": {
    "h": 267.921,
    "s": 52.332,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41815,
    "c": 0.15835,
    "h": 301.1
  },
  "luminance": 0.06388
}

Semantic roles & 50–950 ramp

primary
#5D2E93
secondary
#91B865
accent
#DC4C99
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2E93

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

Preview Lab → · Contrast checker → · Palette generator →

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