#5E37AC#5E37AC

#5E37AC is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.2% C 0.176 H 293.4°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5E37AC
RGBrgb(94, 55, 172)
HSLhsl(260, 52%, 45%)
HSVhsv(260, 68%, 67%)
CMYKcmyk(45.3%, 68%, 0%, 32.5%)
CIE-LABlab(34.17, 44.15, -56.59)
CIE-LCHlch(34.17, 71.78, 307.96°)
OKLaboklab(45.18% 0.0699 -0.1619)
OKLCHoklch(45.18% 0.176 293.4)
XYZxyz(13.4266, 8.0902, 39.8759)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E37AC #85AC37
analogous
#374BAC #5E37AC #9937AC
triadic
#5E37AC #AC5E37 #37AC5E
tetradic
#5E37AC #AC374B #85AC37 #37AC99
square
#5E37AC #AC374B #85AC37 #37AC99
split-complementary
#5E37AC #AC9937 #4BAC37
monochromatic
#2B194F #45287E #5E37AC #7D57C9 #A185D8

Accessibility & contrast

On white

8.02
#5E37AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5E37AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E37AC
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E37AC#FFFFFF#000000##FFFFFF
##5E37AC1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#004EAA
Tritanopia (blue-blind)
#47546D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e37ac;
/* rgb */ color: rgb(94, 55, 172);
/* oklch */ color: oklch(45.2% 0.176 293.4);
Tailwind
colors: {
  custom: {
    50: '#9271c6',
    500: '#5e37ac',
    950: '#000000',
  },
}
SCSS
$custom: #5e37ac;
$custom-light: #9271c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e37ac",
  "rgb": {
    "r": 94,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 260,
    "s": 51.542,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45178,
    "c": 0.17638,
    "h": 293.4
  },
  "luminance": 0.08091
}

Semantic roles & 50–950 ramp

primary
#5E37AC
secondary
#ABC27D
accent
#DB4DAC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E37AC

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

Preview Lab → · Contrast checker → · Palette generator →

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