#5D2896#5D2896

#5D2896 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.169 H 301.2°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#5D2896
RGBrgb(93, 40, 150)
HSLhsl(269, 58%, 37%)
HSVhsv(269, 73%, 59%)
CMYKcmyk(38%, 73.3%, 0%, 41.2%)
CIE-LABlab(29.53, 45.75, -50.84)
CIE-LCHlch(29.53, 68.39, 311.99°)
OKLaboklab(41.29% 0.0877 -0.145)
OKLCHoklch(41.29% 0.169 301.2)
XYZxyz(10.7767, 6.0467, 29.4476)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2896 #619628
analogous
#282A96 #5D2896 #942896
triadic
#5D2896 #965D28 #28965D
tetradic
#5D2896 #96282A #619628 #289694
square
#5D2896 #96282A #619628 #289694
split-complementary
#5D2896 #969428 #2A9628
monochromatic
#210E35 #3F1B66 #5D2896 #7B35C6 #9A63D5

Accessibility & contrast

On white

9.50
#5D2896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5D2896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2896
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2896#FFFFFF#000000##FFFFFF
##5D28961.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004599
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#51435C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d2896;
/* rgb */ color: rgb(93, 40, 150);
/* oklch */ color: oklch(41.3% 0.169 301.2);
Tailwind
colors: {
  custom: {
    50: '#9067b6',
    500: '#5d2896',
    950: '#000000',
  },
}
SCSS
$custom: #5d2896;
$custom-light: #9067b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2896",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 268.909,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4129,
    "c": 0.16946,
    "h": 301.2
  },
  "luminance": 0.06047
}

Semantic roles & 50–950 ramp

primary
#5D2896
secondary
#8FBB5F
accent
#E14797
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2896

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

Preview Lab → · Contrast checker → · Palette generator →

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