#5D42BC#5D42BC

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

Color values

HEX#5D42BC
RGBrgb(93, 66, 188)
HSLhsl(253, 48%, 50%)
HSVhsv(253, 65%, 74%)
CMYKcmyk(50.5%, 64.9%, 0%, 26.3%)
CIE-LABlab(37.58, 42.45, -60.52)
CIE-LCHlch(37.58, 73.92, 305.04°)
OKLaboklab(48% 0.0552 -0.1735)
OKLCHoklch(48% 0.182 287.7)
XYZxyz(15.5369, 9.8537, 48.6505)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D42BC #A1BC42
analogous
#4264BC #5D42BC #9A42BC
triadic
#5D42BC #BC5D42 #42BC5D
tetradic
#5D42BC #BC4264 #A1BC42 #42BC9A
square
#5D42BC #BC4264 #A1BC42 #42BC9A
split-complementary
#5D42BC #BC9A42 #64BC42
monochromatic
#302261 #47328F #5D42BC #846FCC #AA9CDC

Accessibility & contrast

On white

7.07
#5D42BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5D42BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D42BC
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D42BC#FFFFFF#000000##FFFFFF
##5D42BC1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d42bc;
/* rgb */ color: rgb(93, 66, 188);
/* oklch */ color: oklch(48.0% 0.182 287.7);
Tailwind
colors: {
  custom: {
    50: '#9378d1',
    500: '#5d42bc',
    950: '#000000',
  },
}
SCSS
$custom: #5d42bc;
$custom-light: #9378d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d42bc",
  "rgb": {
    "r": 93,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 253.279,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48004,
    "c": 0.1821,
    "h": 287.7
  },
  "luminance": 0.09854
}

Semantic roles & 50–950 ramp

primary
#5D42BC
secondary
#BCC991
accent
#D850BA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5D42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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