#5E42CA#5E42CA

#5E42CA is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.3% C 0.199 H 286.0°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5E42CA
RGBrgb(94, 66, 202)
HSLhsl(252, 56%, 53%)
HSVhsv(252, 67%, 79%)
CMYKcmyk(53.5%, 67.3%, 0%, 20.8%)
CIE-LABlab(38.79, 46.75, -66.71)
CIE-LCHlch(38.79, 81.46, 305.02°)
OKLaboklab(49.25% 0.0548 -0.1917)
OKLCHoklch(49.25% 0.199 286)
XYZxyz(17.2218, 10.5395, 56.9925)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42CA #AECA42
analogous
#426ACA #5E42CA #A242CA
triadic
#5E42CA #CA5E42 #42CA5E
tetradic
#5E42CA #CA426A #AECA42 #42CAA2
square
#5E42CA #CA426A #AECA42 #42CAA2
split-complementary
#5E42CA #CAA242 #6ACA42
monochromatic
#312072 #452DA2 #5E42CA #8772D7 #AFA2E5

Accessibility & contrast

On white

6.76
#5E42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5E42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E42CA
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42CA#FFFFFF#000000##FFFFFF
##5E42CA1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0057C7
Tritanopia (blue-blind)
#316580
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5e42ca;
/* rgb */ color: rgb(94, 66, 202);
/* oklch */ color: oklch(49.3% 0.199 286.0);
Tailwind
colors: {
  custom: {
    50: '#9678db',
    500: '#5e42ca',
    950: '#000000',
  },
}
SCSS
$custom: #5e42ca;
$custom-light: #9678db;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42ca",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 252.353,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49252,
    "c": 0.19934,
    "h": 286
  },
  "luminance": 0.1054
}

Semantic roles & 50–950 ramp

primary
#5E42CA
secondary
#C5D196
accent
#DF48C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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