#5D3D95#5D3D95

#5D3D95 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.2% C 0.139 H 297.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#5D3D95
RGBrgb(93, 61, 149)
HSLhsl(262, 42%, 41%)
HSVhsv(262, 59%, 58%)
CMYKcmyk(37.6%, 59.1%, 0%, 41.6%)
CIE-LABlab(33.64, 34.11, -43.59)
CIE-LCHlch(33.64, 55.35, 308.05°)
OKLaboklab(44.23% 0.0634 -0.1237)
OKLCHoklch(44.23% 0.139 297.1)
XYZxyz(11.6064, 7.8344, 29.3286)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3D95 #75953D
analogous
#3D4995 #5D3D95 #893D95
triadic
#5D3D95 #955D3D #3D955D
tetradic
#5D3D95 #953D49 #75953D #3D9589
square
#5D3D95 #953D49 #75953D #3D9589
split-complementary
#5D3D95 #95893D #49953D
monochromatic
#27193E #422B6A #5D3D95 #7A56BA #9C81CB

Accessibility & contrast

On white

8.18
#5D3D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5D3D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3D95
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3D95#FFFFFF#000000##FFFFFF
##5D3D951.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4F98
Deuteranopia (green-blind)
#1C4E93
Tritanopia (blue-blind)
#505063
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d3d95;
/* rgb */ color: rgb(93, 61, 149);
/* oklch */ color: oklch(44.2% 0.139 297.1);
Tailwind
colors: {
  custom: {
    50: '#8f74b5',
    500: '#5d3d95',
    950: '#000000',
  },
}
SCSS
$custom: #5d3d95;
$custom-light: #8f74b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3d95",
  "rgb": {
    "r": 93,
    "g": 61,
    "b": 149
  },
  "hsl": {
    "h": 261.818,
    "s": 41.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4423,
    "c": 0.13902,
    "h": 297.1
  },
  "luminance": 0.07835
}

Semantic roles & 50–950 ramp

primary
#5D3D95
secondary
#9FB578
accent
#D256A5
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0811
muted
#7E7B80

Preview Lab

Preview with #5D3D95

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

Preview Lab → · Contrast checker → · Palette generator →

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