#5A37CA#5A37CA

#5A37CA is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.4% C 0.212 H 286.0°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5A37CA
RGBrgb(90, 55, 202)
HSLhsl(254, 58%, 50%)
HSVhsv(254, 73%, 79%)
CMYKcmyk(55.4%, 72.8%, 0%, 20.8%)
CIE-LABlab(36.31, 51.98, -70.79)
CIE-LCHlch(36.31, 87.83, 306.29°)
OKLaboklab(47.39% 0.0585 -0.2037)
OKLCHoklch(47.39% 0.212 286)
XYZxyz(16.2401, 9.1694, 56.7798)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37CA #A7CA37
analogous
#375DCA #5A37CA #A437CA
triadic
#5A37CA #CA5A37 #37CA5A
tetradic
#5A37CA #CA375D #A7CA37 #37CAA4
square
#5A37CA #CA375D #A7CA37 #37CAA4
split-complementary
#5A37CA #CAA437 #5DCA37
monochromatic
#2F1C6A #44299B #5A37CA #8267D7 #AA98E4

Accessibility & contrast

On white

7.41
#5A37CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5A37CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37CA
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37CA#FFFFFF#000000##FFFFFF
##5A37CA1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#275F7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a37ca;
/* rgb */ color: rgb(90, 55, 202);
/* oklch */ color: oklch(47.4% 0.212 286.0);
Tailwind
colors: {
  custom: {
    50: '#9471db',
    500: '#5a37ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a37ca;
$custom-light: #9471db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37ca",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 202
  },
  "hsl": {
    "h": 254.286,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4739,
    "c": 0.21195,
    "h": 286
  },
  "luminance": 0.0917
}

Semantic roles & 50–950 ramp

primary
#5A37CA
secondary
#C0CF8E
accent
#E146BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A37CA

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

Preview Lab → · Contrast checker → · Palette generator →

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