#5E42BC#5E42BC

#5E42BC is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.1% C 0.182 H 288.1°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5E42BC
RGBrgb(94, 66, 188)
HSLhsl(254, 48%, 50%)
HSVhsv(254, 65%, 74%)
CMYKcmyk(50%, 64.9%, 0%, 26.3%)
CIE-LABlab(37.67, 42.63, -60.36)
CIE-LCHlch(37.67, 73.90, 305.23°)
OKLaboklab(48.1% 0.0566 -0.173)
OKLCHoklch(48.1% 0.182 288.1)
XYZxyz(15.6388, 9.9063, 48.6553)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42BC #A0BC42
analogous
#4263BC #5E42BC #9B42BC
triadic
#5E42BC #BC5E42 #42BC5E
tetradic
#5E42BC #BC4263 #A0BC42 #42BC9B
square
#5E42BC #BC4263 #A0BC42 #42BC9B
split-complementary
#5E42BC #BC9B42 #63BC42
monochromatic
#312261 #47328F #5E42BC #846FCC #AB9CDC

Accessibility & contrast

On white

7.04
#5E42BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5E42BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E42BC
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42BC#FFFFFF#000000##FFFFFF
##5E42BC1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#3D6079
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e42bc;
/* rgb */ color: rgb(94, 66, 188);
/* oklch */ color: oklch(48.1% 0.182 288.1);
Tailwind
colors: {
  custom: {
    50: '#9478d1',
    500: '#5e42bc',
    950: '#000000',
  },
}
SCSS
$custom: #5e42bc;
$custom-light: #9478d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42bc",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 253.77,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48096,
    "c": 0.18205,
    "h": 288.1
  },
  "luminance": 0.09907
}

Semantic roles & 50–950 ramp

primary
#5E42BC
secondary
#BCC991
accent
#D850B9
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5E42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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