#5D3095#5D3095

#5D3095 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.158 H 300.1°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5D3095
RGBrgb(93, 48, 149)
HSLhsl(267, 51%, 39%)
HSVhsv(267, 68%, 58%)
CMYKcmyk(37.6%, 67.8%, 0%, 41.6%)
CIE-LABlab(30.90, 41.45, -47.99)
CIE-LCHlch(30.90, 63.42, 310.81°)
OKLaboklab(42.25% 0.0793 -0.1367)
OKLCHoklch(42.25% 0.158 300.1)
XYZxyz(10.9946, 6.6109, 29.1247)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3095 #689530
analogous
#303595 #5D3095 #8F3095
triadic
#5D3095 #955D30 #30955D
tetradic
#5D3095 #953035 #689530 #30958F
square
#5D3095 #953035 #689530 #30958F
split-complementary
#5D3095 #958F30 #359530
monochromatic
#231238 #402167 #5D3095 #7A41C2 #9A6FD1

Accessibility & contrast

On white

9.04
#5D3095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5D3095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3095
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3095#FFFFFF#000000##FFFFFF
##5D30951.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#51475E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d3095;
/* rgb */ color: rgb(93, 48, 149);
/* oklch */ color: oklch(42.2% 0.158 300.1);
Tailwind
colors: {
  custom: {
    50: '#906bb5',
    500: '#5d3095',
    950: '#000000',
  },
}
SCSS
$custom: #5d3095;
$custom-light: #906bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3095",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 149
  },
  "hsl": {
    "h": 266.733,
    "s": 51.269,
    "l": 38.627
  },
  "oklch": {
    "l": 0.42247,
    "c": 0.15799,
    "h": 300.1
  },
  "luminance": 0.06611
}

Semantic roles & 50–950 ramp

primary
#5D3095
secondary
#95B869
accent
#DB4D9C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D3095

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

Preview Lab → · Contrast checker → · Palette generator →

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