#5A37CC#5A37CC

#5A37CC is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.6% C 0.214 H 285.7°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5A37CC
RGBrgb(90, 55, 204)
HSLhsl(254, 59%, 51%)
HSVhsv(254, 73%, 80%)
CMYKcmyk(55.9%, 73%, 0%, 20%)
CIE-LABlab(36.49, 52.56, -71.66)
CIE-LCHlch(36.49, 88.87, 306.26°)
OKLaboklab(47.57% 0.058 -0.2063)
OKLCHoklch(47.57% 0.214 285.7)
XYZxyz(16.4784, 9.2647, 58.0350)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37CC #A9CC37
analogous
#375ECC #5A37CC #A437CC
triadic
#5A37CC #CC5A37 #37CC5A
tetradic
#5A37CC #CC375E #A9CC37 #37CCA4
square
#5A37CC #CC375E #A9CC37 #37CCA4
split-complementary
#5A37CC #CCA437 #5ECC37
monochromatic
#2F1C6D #44289E #5A37CC #8268D8 #AA99E5

Accessibility & contrast

On white

7.36
#5A37CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A37CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37CC
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37CC#FFFFFF#000000##FFFFFF
##5A37CC1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD0
Deuteranopia (green-blind)
#0051C9
Tritanopia (blue-blind)
#24607E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a37cc;
/* rgb */ color: rgb(90, 55, 204);
/* oklch */ color: oklch(47.6% 0.214 285.7);
Tailwind
colors: {
  custom: {
    50: '#9471dd',
    500: '#5a37cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a37cc;
$custom-light: #9471dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37cc",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 254.094,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47573,
    "c": 0.21426,
    "h": 285.7
  },
  "luminance": 0.09266
}

Semantic roles & 50–950 ramp

primary
#5A37CC
secondary
#C1D08E
accent
#E345BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A37CC

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

Preview Lab → · Contrast checker → · Palette generator →

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