#5D2E91#5D2E91

#5D2E91 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.156 H 301.7°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#5D2E91
RGBrgb(93, 46, 145)
HSLhsl(268, 52%, 37%)
HSVhsv(268, 68%, 57%)
CMYKcmyk(35.9%, 68.3%, 0%, 43.1%)
CIE-LABlab(30.22, 41.46, -46.65)
CIE-LCHlch(30.22, 62.41, 311.63°)
OKLaboklab(41.66% 0.0821 -0.1327)
OKLCHoklch(41.66% 0.156 301.7)
XYZxyz(10.6008, 6.3254, 27.4450)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2E91 #62912E
analogous
#2E3191 #5D2E91 #8E2E91
triadic
#5D2E91 #915D2E #2E915D
tetradic
#5D2E91 #912E31 #62912E #2E918E
square
#5D2E91 #912E31 #62912E #2E918E
split-complementary
#5D2E91 #918E2E #31912E
monochromatic
#211134 #3F1F63 #5D2E91 #7B3DBF #9A6AD0

Accessibility & contrast

On white

9.27
#5D2E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5D2E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2E91
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2E91#FFFFFF#000000##FFFFFF
##5D2E911.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#00478F
Tritanopia (blue-blind)
#52445B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d2e91;
/* rgb */ color: rgb(93, 46, 145);
/* oklch */ color: oklch(41.7% 0.156 301.7);
Tailwind
colors: {
  custom: {
    50: '#8f6ab2',
    500: '#5d2e91',
    950: '#000000',
  },
}
SCSS
$custom: #5d2e91;
$custom-light: #8f6ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2e91",
  "rgb": {
    "r": 93,
    "g": 46,
    "b": 145
  },
  "hsl": {
    "h": 268.485,
    "s": 51.832,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41659,
    "c": 0.15601,
    "h": 301.7
  },
  "luminance": 0.06325
}

Semantic roles & 50–950 ramp

primary
#5D2E91
secondary
#8FB764
accent
#DB4D98
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D2E91

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

Preview Lab → · Contrast checker → · Palette generator →

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