#5A37BB#5A37BB

#5A37BB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.194 H 288.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#5A37BB
RGBrgb(90, 55, 187)
HSLhsl(256, 55%, 47%)
HSVhsv(256, 71%, 73%)
CMYKcmyk(51.9%, 70.6%, 0%, 26.7%)
CIE-LABlab(34.99, 47.69, -64.17)
CIE-LCHlch(34.99, 79.95, 306.62°)
OKLaboklab(46.05% 0.0616 -0.1843)
OKLCHoklch(46.05% 0.194 288.5)
XYZxyz(14.5497, 8.4932, 47.8768)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37BB #98BB37
analogous
#3756BB #5A37BB #9C37BB
triadic
#5A37BB #BB5A37 #37BB5A
tetradic
#5A37BB #BB3756 #98BB37 #37BB9C
square
#5A37BB #BB3756 #98BB37 #37BB9C
split-complementary
#5A37BB #BB9C37 #56BB37
monochromatic
#2C1B5C #43298C #5A37BB #7D5FD0 #A48EDE

Accessibility & contrast

On white

7.78
#5A37BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5A37BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37BB
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37BB#FFFFFF#000000##FFFFFF
##5A37BB1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#365975
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a37bb;
/* rgb */ color: rgb(90, 55, 187);
/* oklch */ color: oklch(46.1% 0.194 288.5);
Tailwind
colors: {
  custom: {
    50: '#9271d0',
    500: '#5a37bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a37bb;
$custom-light: #9271d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37bb",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 187
  },
  "hsl": {
    "h": 255.909,
    "s": 54.545,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4605,
    "c": 0.19434,
    "h": 288.5
  },
  "luminance": 0.08494
}

Semantic roles & 50–950 ramp

primary
#5A37BB
secondary
#B7C985
accent
#DE4AB7
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A37BB

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

Preview Lab → · Contrast checker → · Palette generator →

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