#5E46CC#5E46CC

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

Color values

HEX#5E46CC
RGBrgb(94, 70, 204)
HSLhsl(251, 57%, 54%)
HSVhsv(251, 66%, 80%)
CMYKcmyk(53.9%, 65.7%, 0%, 20%)
CIE-LABlab(39.78, 45.11, -66.26)
CIE-LCHlch(39.78, 80.16, 304.25°)
OKLaboklab(50.01% 0.0509 -0.1903)
OKLCHoklch(50.01% 0.197 285)
XYZxyz(17.7020, 11.1186, 58.3284)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E46CC #B4CC46
analogous
#4671CC #5E46CC #A146CC
triadic
#5E46CC #CC5E46 #46CC5E
tetradic
#5E46CC #CC4671 #B4CC46 #46CCA1
square
#5E46CC #CC4671 #B4CC46 #46CCA1
split-complementary
#5E46CC #CCA146 #71CC46
monochromatic
#302177 #442EA7 #5E46CC #8876D9 #B1A6E6

Accessibility & contrast

On white

6.51
#5E46CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5E46CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E46CC
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E46CC#FFFFFF#000000##FFFFFF
##5E46CC1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#2F6883
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e46cc;
/* rgb */ color: rgb(94, 70, 204);
/* oklch */ color: oklch(50.0% 0.197 285.0);
Tailwind
colors: {
  custom: {
    50: '#967bdd',
    500: '#5e46cc',
    950: '#000000',
  },
}
SCSS
$custom: #5e46cc;
$custom-light: #967bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e46cc",
  "rgb": {
    "r": 94,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 250.746,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50013,
    "c": 0.19702,
    "h": 285
  },
  "luminance": 0.1112
}

Semantic roles & 50–950 ramp

primary
#5E46CC
secondary
#C9D49A
accent
#E048C5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E46CC

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

Preview Lab → · Contrast checker → · Palette generator →

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