#5B37DA#5B37DA

#5B37DA is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.230 H 284.1°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5B37DA
RGBrgb(91, 55, 218)
HSLhsl(253, 69%, 54%)
HSVhsv(253, 75%, 85%)
CMYKcmyk(58.3%, 74.8%, 0%, 14.5%)
CIE-LABlab(37.87, 56.67, -77.47)
CIE-LCHlch(37.87, 95.98, 306.19°)
OKLaboklab(48.96% 0.0561 -0.2232)
OKLCHoklch(48.96% 0.23 284.1)
XYZxyz(18.3316, 10.0173, 67.2836)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37DA #B6DA37
analogous
#3764DA #5B37DA #AD37DA
triadic
#5B37DA #DA5B37 #37DA5B
tetradic
#5B37DA #DA3764 #B6DA37 #37DAAD
square
#5B37DA #DA3764 #B6DA37 #37DAAD
split-complementary
#5B37DA #DAAD37 #64DA37
monochromatic
#2E187F #4121B3 #5B37DA #856BE4 #B09EED

Accessibility & contrast

On white

6.99
#5B37DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5B37DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B37DA
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37DA#FFFFFF#000000##FFFFFF
##5B37DA1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDF
Deuteranopia (green-blind)
#0054D7
Tritanopia (blue-blind)
#0A6586
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b37da;
/* rgb */ color: rgb(91, 55, 218);
/* oklch */ color: oklch(49.0% 0.230 284.1);
Tailwind
colors: {
  custom: {
    50: '#9772e7',
    500: '#5b37da',
    950: '#000000',
  },
}
SCSS
$custom: #5b37da;
$custom-light: #9772e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37da",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 218
  },
  "hsl": {
    "h": 253.252,
    "s": 68.776,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48962,
    "c": 0.23015,
    "h": 284.1
  },
  "luminance": 0.10018
}

Semantic roles & 50–950 ramp

primary
#5B37DA
secondary
#CAD993
accent
#EC3CC5
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B37DA

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

Preview Lab → · Contrast checker → · Palette generator →

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