#5D2E8D#5D2E8D

#5D2E8D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.151 H 303.0°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5D2E8D
RGBrgb(93, 46, 141)
HSLhsl(270, 51%, 37%)
HSVhsv(270, 67%, 55%)
CMYKcmyk(34%, 67.4%, 0%, 44.7%)
CIE-LABlab(29.92, 40.42, -44.66)
CIE-LCHlch(29.92, 60.24, 312.15°)
OKLaboklab(41.35% 0.0825 -0.1269)
OKLCHoklch(41.35% 0.151 303)
XYZxyz(10.2978, 6.2042, 25.8492)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E8D #5E8D2E
analogous
#2E2F8D #5D2E8D #8D2E8D
triadic
#5D2E8D #8D5D2E #2E8D5D
tetradic
#5D2E8D #8D2E2F #5E8D2E #2E8D8D
square
#5D2E8D #8D2E2F #5E8D2E #2E8D8D
split-complementary
#5D2E8D #8D8D2E #2F8D2E
monochromatic
#201031 #3F1F5F #5D2E8D #7B3DBB #9A68CE

Accessibility & contrast

On white

9.37
#5D2E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5D2E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E8D
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E8D#FFFFFF#000000##FFFFFF
##5D2E8D1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#0A468B
Tritanopia (blue-blind)
#544359
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d2e8d;
/* rgb */ color: rgb(93, 46, 141);
/* oklch */ color: oklch(41.4% 0.151 303.0);
Tailwind
colors: {
  custom: {
    50: '#8f6aaf',
    500: '#5d2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e8d;
$custom-light: #8f6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e8d",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 269.684,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41352,
    "c": 0.15133,
    "h": 303
  },
  "luminance": 0.06204
}

Semantic roles & 50–950 ramp

primary
#5D2E8D
secondary
#8CB562
accent
#DA4E95
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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