#5D2E9F#5D2E9F

#5D2E9F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.172 H 297.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5D2E9F
RGBrgb(93, 46, 159)
HSLhsl(265, 55%, 40%)
HSVhsv(265, 71%, 62%)
CMYKcmyk(41.5%, 71.1%, 0%, 37.6%)
CIE-LABlab(31.31, 45.14, -53.43)
CIE-LCHlch(31.31, 69.94, 310.19°)
OKLaboklab(42.78% 0.0799 -0.1526)
OKLCHoklch(42.78% 0.172 297.6)
XYZxyz(11.7476, 6.7842, 33.4847)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E9F #709F2E
analogous
#2E379F #5D2E9F #962E9F
triadic
#5D2E9F #9F5D2E #2E9F5D
tetradic
#5D2E9F #9F2E37 #709F2E #2E9F96
square
#5D2E9F #9F2E37 #709F2E #2E9F96
split-complementary
#5D2E9F #9F962E #379F2E
monochromatic
#251340 #412070 #5D2E9F #7A42C8 #9B71D6

Accessibility & contrast

On white

8.91
#5D2E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5D2E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E9F
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E9F#FFFFFF#000000##FFFFFF
##5D2E9F1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#4D4A63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d2e9f;
/* rgb */ color: rgb(93, 46, 159);
/* oklch */ color: oklch(42.8% 0.172 297.6);
Tailwind
colors: {
  custom: {
    50: '#916bbc',
    500: '#5d2e9f',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e9f;
$custom-light: #916bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e9f",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 264.956,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42782,
    "c": 0.17227,
    "h": 297.6
  },
  "luminance": 0.06784
}

Semantic roles & 50–950 ramp

primary
#5D2E9F
secondary
#9BBE6B
accent
#DE49A0
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5D2E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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