#5D37B2#5D37B2

#5D37B2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.184 H 291.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#5D37B2
RGBrgb(93, 55, 178)
HSLhsl(259, 53%, 46%)
HSVhsv(259, 69%, 70%)
CMYKcmyk(47.8%, 69.1%, 0%, 30.2%)
CIE-LABlab(34.55, 45.65, -59.56)
CIE-LCHlch(34.55, 75.04, 307.47°)
OKLaboklab(45.57% 0.0676 -0.1707)
OKLCHoklch(45.57% 0.184 291.6)
XYZxyz(13.9140, 8.2734, 42.9746)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D37B2 #8CB237
analogous
#374EB2 #5D37B2 #9B37B2
triadic
#5D37B2 #B25D37 #37B25D
tetradic
#5D37B2 #B2374E #8CB237 #37B29B
square
#5D37B2 #B2374E #8CB237 #37B29B
split-complementary
#5D37B2 #B29B37 #4EB237
monochromatic
#2C1A54 #452983 #5D37B2 #7D5ACC #A289DB

Accessibility & contrast

On white

7.91
#5D37B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5D37B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D37B2
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D37B2#FFFFFF#000000##FFFFFF
##5D37B21.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#425670
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d37b2;
/* rgb */ color: rgb(93, 55, 178);
/* oklch */ color: oklch(45.6% 0.184 291.6);
Tailwind
colors: {
  custom: {
    50: '#9271ca',
    500: '#5d37b2',
    950: '#000000',
  },
}
SCSS
$custom: #5d37b2;
$custom-light: #9271ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d37b2",
  "rgb": {
    "r": 93,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 258.537,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45572,
    "c": 0.18355,
    "h": 291.6
  },
  "luminance": 0.08274
}

Semantic roles & 50–950 ramp

primary
#5D37B2
secondary
#AFC580
accent
#DC4CB0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D37B2

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

Preview Lab → · Contrast checker → · Palette generator →

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