#5E37AB#5E37AB

#5E37AB is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.1% C 0.175 H 293.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5E37AB
RGBrgb(94, 55, 171)
HSLhsl(260, 51%, 44%)
HSVhsv(260, 68%, 67%)
CMYKcmyk(45%, 67.8%, 0%, 32.9%)
CIE-LABlab(34.09, 43.88, -56.12)
CIE-LCHlch(34.09, 71.24, 308.02°)
OKLaboklab(45.1% 0.0701 -0.1605)
OKLCHoklch(45.1% 0.175 293.6)
XYZxyz(13.3310, 8.0519, 39.3720)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E37AB #84AB37
analogous
#374AAB #5E37AB #9837AB
triadic
#5E37AB #AB5E37 #37AB5E
tetradic
#5E37AB #AB374A #84AB37 #37AB98
square
#5E37AB #AB374A #84AB37 #37AB98
split-complementary
#5E37AB #AB9837 #4AAB37
monochromatic
#2B194E #45287D #5E37AB #7D56C9 #A185D8

Accessibility & contrast

On white

8.04
#5E37AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5E37AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E37AB
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E37AB#FFFFFF#000000##FFFFFF
##5E37AB1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#48536C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e37ab;
/* rgb */ color: rgb(94, 55, 171);
/* oklch */ color: oklch(45.1% 0.175 293.6);
Tailwind
colors: {
  custom: {
    50: '#9270c5',
    500: '#5e37ab',
    950: '#000000',
  },
}
SCSS
$custom: #5e37ab;
$custom-light: #9270c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e37ab",
  "rgb": {
    "r": 94,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 260.172,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45096,
    "c": 0.17517,
    "h": 293.6
  },
  "luminance": 0.08052
}

Semantic roles & 50–950 ramp

primary
#5E37AB
secondary
#AAC17C
accent
#DB4DAB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5E37AB

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

Preview Lab → · Contrast checker → · Palette generator →

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