#5D2E9A#5D2E9A

#5D2E9A is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.166 H 299.0°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5D2E9A
RGBrgb(93, 46, 154)
HSLhsl(266, 54%, 39%)
HSVhsv(266, 70%, 60%)
CMYKcmyk(39.6%, 70.1%, 0%, 39.6%)
CIE-LABlab(30.91, 43.81, -51.04)
CIE-LCHlch(30.91, 67.26, 310.65°)
OKLaboklab(42.37% 0.0808 -0.1456)
OKLCHoklch(42.37% 0.166 299)
XYZxyz(11.3225, 6.6141, 31.2457)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E9A #6B9A2E
analogous
#2E359A #5D2E9A #932E9A
triadic
#5D2E9A #9A5D2E #2E9A5D
tetradic
#5D2E9A #9A2E35 #6B9A2E #2E9A93
square
#5D2E9A #9A2E35 #6B9A2E #2E9A93
split-complementary
#5D2E9A #9A932E #359A2E
monochromatic
#24123C #41206B #5D2E9A #7A3FC6 #9B6FD4

Accessibility & contrast

On white

9.04
#5D2E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5D2E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E9A
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E9A#FFFFFF#000000##FFFFFF
##5D2E9A1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#004898
Tritanopia (blue-blind)
#4F4860
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d2e9a;
/* rgb */ color: rgb(93, 46, 154);
/* oklch */ color: oklch(42.4% 0.166 299.0);
Tailwind
colors: {
  custom: {
    50: '#906ab9',
    500: '#5d2e9a',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e9a;
$custom-light: #906ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e9a",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 266.111,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42373,
    "c": 0.16649,
    "h": 299
  },
  "luminance": 0.06614
}

Semantic roles & 50–950 ramp

primary
#5D2E9A
secondary
#97BB69
accent
#DD4A9D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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