#5E46CD#5E46CD

#5E46CD is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.1% C 0.198 H 284.8°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5E46CD
RGBrgb(94, 70, 205)
HSLhsl(251, 57%, 54%)
HSVhsv(251, 66%, 80%)
CMYKcmyk(54.1%, 65.9%, 0%, 19.6%)
CIE-LABlab(39.86, 45.41, -66.71)
CIE-LCHlch(39.86, 80.70, 304.24°)
OKLaboklab(50.1% 0.0508 -0.1917)
OKLCHoklch(50.1% 0.198 284.8)
XYZxyz(17.8224, 11.1668, 58.9621)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E46CD #B5CD46
analogous
#4672CD #5E46CD #A246CD
triadic
#5E46CD #CD5E46 #46CD5E
tetradic
#5E46CD #CD4672 #B5CD46 #46CDA2
square
#5E46CD #CD4672 #B5CD46 #46CDA2
split-complementary
#5E46CD #CDA246 #72CD46
monochromatic
#302078 #432DA8 #5E46CD #8876DA #B2A6E7

Accessibility & contrast

On white

6.49
#5E46CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5E46CD
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E46CD#FFFFFF#000000##FFFFFF
##5E46CD1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#2D6883
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e46cd;
/* rgb */ color: rgb(94, 70, 205);
/* oklch */ color: oklch(50.1% 0.198 284.8);
Tailwind
colors: {
  custom: {
    50: '#967bdd',
    500: '#5e46cd',
    950: '#000000',
  },
}
SCSS
$custom: #5e46cd;
$custom-light: #967bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e46cd",
  "rgb": {
    "r": 94,
    "g": 70,
    "b": 205
  },
  "hsl": {
    "h": 250.667,
    "s": 57.447,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50096,
    "c": 0.19827,
    "h": 284.8
  },
  "luminance": 0.11168
}

Semantic roles & 50–950 ramp

primary
#5E46CD
secondary
#CAD49B
accent
#E147C5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E46CD

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

Preview Lab → · Contrast checker → · Palette generator →

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