#5E2AC5#5E2AC5

#5E2AC5 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.8% C 0.219 H 290.1°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5E2AC5
RGBrgb(94, 42, 197)
HSLhsl(260, 65%, 47%)
HSVhsv(260, 79%, 77%)
CMYKcmyk(52.3%, 78.7%, 0%, 22.7%)
CIE-LABlab(34.12, 57.25, -71.46)
CIE-LCHlch(34.12, 91.56, 308.70°)
OKLaboklab(45.81% 0.0752 -0.2054)
OKLCHoklch(45.81% 0.219 290.1)
XYZxyz(15.5192, 8.0661, 53.5517)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2AC5 #91C52A
analogous
#2A44C5 #5E2AC5 #AC2AC5
triadic
#5E2AC5 #C55E2A #2AC55E
tetradic
#5E2AC5 #C52A44 #91C52A #2AC5AC
square
#5E2AC5 #C52A44 #91C52A #2AC5AC
split-complementary
#5E2AC5 #C5AC2A #44C52A
monochromatic
#2E1460 #461F93 #5E2AC5 #8052DA #A585E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E2AC5#FFFFFF#000000##FFFFFF
##5E2AC51.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)
#0053C9
Deuteranopia (green-blind)
#004DC2
Tritanopia (blue-blind)
#385778
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5e2ac5;
/* rgb */ color: rgb(94, 42, 197);
/* oklch */ color: oklch(45.8% 0.219 290.1);
Tailwind
colors: {
  custom: {
    50: '#966ad8',
    500: '#5e2ac5',
    950: '#000000',
  },
}
SCSS
$custom: #5e2ac5;
$custom-light: #966ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2ac5",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 197
  },
  "hsl": {
    "h": 260.129,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45812,
    "c": 0.21877,
    "h": 290.1
  },
  "luminance": 0.08067
}

Semantic roles & 50–950 ramp

primary
#5E2AC5
secondary
#B3CE7D
accent
#E840B0
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5E2AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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