#5D3A8F#5D3A8F

#5D3A8F is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.3% C 0.136 H 299.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#5D3A8F
RGBrgb(93, 58, 143)
HSLhsl(265, 42%, 39%)
HSVhsv(265, 59%, 56%)
CMYKcmyk(35%, 59.4%, 0%, 43.9%)
CIE-LABlab(32.56, 34.23, -41.64)
CIE-LCHlch(32.56, 53.91, 309.42°)
OKLaboklab(43.31% 0.0673 -0.118)
OKLCHoklch(43.31% 0.136 299.7)
XYZxyz(10.9840, 7.3363, 26.8186)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3A8F #6C8F3A
analogous
#3A418F #5D3A8F #883A8F
triadic
#5D3A8F #8F5D3A #3A8F5D
tetradic
#5D3A8F #8F3A41 #6C8F3A #3A8F88
square
#5D3A8F #8F3A41 #6C8F3A #3A8F88
split-complementary
#5D3A8F #8F883A #418F3A
monochromatic
#241738 #412863 #5D3A8F #7A4FB7 #9B7AC9

Accessibility & contrast

On white

8.51
#5D3A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5D3A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3A8F
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3A8F#FFFFFF#000000##FFFFFF
##5D3A8F1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4C92
Deuteranopia (green-blind)
#1F4C8D
Tritanopia (blue-blind)
#524C5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5d3a8f;
/* rgb */ color: rgb(93, 58, 143);
/* oklch */ color: oklch(43.3% 0.136 299.7);
Tailwind
colors: {
  custom: {
    50: '#8e72b0',
    500: '#5d3a8f',
    950: '#000000',
  },
}
SCSS
$custom: #5d3a8f;
$custom-light: #8e72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3a8f",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 143
  },
  "hsl": {
    "h": 264.706,
    "s": 42.289,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43313,
    "c": 0.13589,
    "h": 299.7
  },
  "luminance": 0.07336
}

Semantic roles & 50–950 ramp

primary
#5D3A8F
secondary
#98B372
accent
#D2569F
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #5D3A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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