#5D37AB#5D37AB

#5D37AB is a dark, vivid violet. Relative luminance 0.080; OKLCH L 45.0% C 0.175 H 293.1°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#5D37AB
RGBrgb(93, 55, 171)
HSLhsl(260, 51%, 44%)
HSVhsv(260, 68%, 67%)
CMYKcmyk(45.6%, 67.8%, 0%, 32.9%)
CIE-LABlab(33.98, 43.68, -56.31)
CIE-LCHlch(33.98, 71.26, 307.80°)
OKLaboklab(44.99% 0.0687 -0.1611)
OKLCHoklch(44.99% 0.175 293.1)
XYZxyz(13.2291, 7.9994, 39.3672)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37AB #85AB37
analogous
#374BAB #5D37AB #9737AB
triadic
#5D37AB #AB5D37 #37AB5D
tetradic
#5D37AB #AB374B #85AB37 #37AB97
square
#5D37AB #AB374B #85AB37 #37AB97
split-complementary
#5D37AB #AB9737 #4BAB37
monochromatic
#2B194E #44287D #5D37AB #7C56C9 #A085D8

Accessibility & contrast

On white

8.08
#5D37AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5D37AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D37AB
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37AB#FFFFFF#000000##FFFFFF
##5D37AB1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#46536C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d37ab;
/* rgb */ color: rgb(93, 55, 171);
/* oklch */ color: oklch(45.0% 0.175 293.1);
Tailwind
colors: {
  custom: {
    50: '#9270c5',
    500: '#5d37ab',
    950: '#000000',
  },
}
SCSS
$custom: #5d37ab;
$custom-light: #9270c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37ab",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 259.655,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44992,
    "c": 0.17513,
    "h": 293.1
  },
  "luminance": 0.08
}

Semantic roles & 50–950 ramp

primary
#5D37AB
secondary
#ABC17C
accent
#DB4DAC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5D37AB

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

Preview Lab → · Contrast checker → · Palette generator →

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