#5E47CA#5E47CA

#5E47CA is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.0% C 0.193 H 285.0°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#5E47CA
RGBrgb(94, 71, 202)
HSLhsl(251, 55%, 54%)
HSVhsv(251, 65%, 79%)
CMYKcmyk(53.5%, 64.9%, 0%, 20.8%)
CIE-LABlab(39.83, 43.94, -65.02)
CIE-LCHlch(39.83, 78.47, 304.05°)
OKLaboklab(50% 0.0502 -0.1867)
OKLCHoklch(50% 0.193 285)
XYZxyz(17.5268, 11.1495, 57.0942)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E47CA #B3CA47
analogous
#4771CA #5E47CA #9F47CA
triadic
#5E47CA #CA5E47 #47CA5E
tetradic
#5E47CA #CA4771 #B3CA47 #47CA9F
square
#5E47CA #CA4771 #B3CA47 #47CA9F
split-complementary
#5E47CA #CA9F47 #71CA47
monochromatic
#302275 #442FA4 #5E47CA #8877D8 #B1A6E5

Accessibility & contrast

On white

6.50
#5E47CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5E47CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E47CA
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E47CA#FFFFFF#000000##FFFFFF
##5E47CA1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#306882
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e47ca;
/* rgb */ color: rgb(94, 71, 202);
/* oklch */ color: oklch(50.0% 0.193 285.0);
Tailwind
colors: {
  custom: {
    50: '#957cdb',
    500: '#5e47ca',
    950: '#000000',
  },
}
SCSS
$custom: #5e47ca;
$custom-light: #957cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e47ca",
  "rgb": {
    "r": 94,
    "g": 71,
    "b": 202
  },
  "hsl": {
    "h": 250.534,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50001,
    "c": 0.19332,
    "h": 285
  },
  "luminance": 0.1115
}

Semantic roles & 50–950 ramp

primary
#5E47CA
secondary
#C9D29A
accent
#DF49C4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E47CA

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

Preview Lab → · Contrast checker → · Palette generator →

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