#5A37CF#5A37CF

#5A37CF is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.8% C 0.218 H 285.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5A37CF
RGBrgb(90, 55, 207)
HSLhsl(254, 61%, 51%)
HSVhsv(254, 73%, 81%)
CMYKcmyk(56.5%, 73.4%, 0%, 18.8%)
CIE-LABlab(36.76, 53.41, -72.95)
CIE-LCHlch(36.76, 90.42, 306.21°)
OKLaboklab(47.85% 0.0573 -0.21)
OKLCHoklch(47.85% 0.218 285.3)
XYZxyz(16.8417, 9.4100, 59.9483)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37CF #ACCF37
analogous
#3760CF #5A37CF #A637CF
triadic
#5A37CF #CF5A37 #37CF5A
tetradic
#5A37CF #CF3760 #ACCF37 #37CFA6
square
#5A37CF #CF3760 #ACCF37 #37CFA6
split-complementary
#5A37CF #CFA637 #60CF37
monochromatic
#2F1B71 #4327A2 #5A37CF #8368DB #AB9AE7

Accessibility & contrast

On white

7.29
#5A37CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5A37CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37CF
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37CF#FFFFFF#000000##FFFFFF
##5A37CF1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#1F6180
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a37cf;
/* rgb */ color: rgb(90, 55, 207);
/* oklch */ color: oklch(47.8% 0.218 285.3);
Tailwind
colors: {
  custom: {
    50: '#9572df',
    500: '#5a37cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a37cf;
$custom-light: #9572df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37cf",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 207
  },
  "hsl": {
    "h": 253.816,
    "s": 61.29,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47848,
    "c": 0.21773,
    "h": 285.3
  },
  "luminance": 0.09411
}

Semantic roles & 50–950 ramp

primary
#5A37CF
secondary
#C3D28F
accent
#E443BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5A37CF

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

Preview Lab → · Contrast checker → · Palette generator →

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