#5A37C8#5A37C8

#5A37C8 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.210 H 286.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5A37C8
RGBrgb(90, 55, 200)
HSLhsl(254, 57%, 50%)
HSVhsv(254, 73%, 78%)
CMYKcmyk(55%, 72.5%, 0%, 21.6%)
CIE-LABlab(36.13, 51.41, -69.92)
CIE-LCHlch(36.13, 86.79, 306.33°)
OKLaboklab(47.21% 0.0589 -0.2012)
OKLCHoklch(47.21% 0.21 286.3)
XYZxyz(16.0048, 9.0753, 55.5407)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37C8 #A5C837
analogous
#375CC8 #5A37C8 #A337C8
triadic
#5A37C8 #C85A37 #37C85A
tetradic
#5A37C8 #C8375C #A5C837 #37C8A3
square
#5A37C8 #C8375C #A5C837 #37C8A3
split-complementary
#5A37C8 #C8A337 #5CC837
monochromatic
#2F1D68 #442A98 #5A37C8 #8267D5 #A997E2

Accessibility & contrast

On white

7.46
#5A37C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5A37C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37C8
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37C8#FFFFFF#000000##FFFFFF
##5A37C81.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0051C5
Tritanopia (blue-blind)
#295E7C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a37c8;
/* rgb */ color: rgb(90, 55, 200);
/* oklch */ color: oklch(47.2% 0.210 286.3);
Tailwind
colors: {
  custom: {
    50: '#9471da',
    500: '#5a37c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a37c8;
$custom-light: #9471da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37c8",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 200
  },
  "hsl": {
    "h": 254.483,
    "s": 56.863,
    "l": 50
  },
  "oklch": {
    "l": 0.47208,
    "c": 0.20962,
    "h": 286.3
  },
  "luminance": 0.09076
}

Semantic roles & 50–950 ramp

primary
#5A37C8
secondary
#BECE8D
accent
#E048BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A37C8

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

Preview Lab → · Contrast checker → · Palette generator →

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