#5D42C2#5D42C2

#5D42C2 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.5% C 0.190 H 286.7°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5D42C2
RGBrgb(93, 66, 194)
HSLhsl(253, 51%, 51%)
HSVhsv(253, 66%, 76%)
CMYKcmyk(52.1%, 66%, 0%, 23.9%)
CIE-LABlab(38.05, 44.22, -63.26)
CIE-LCHlch(38.05, 77.19, 304.95°)
OKLaboklab(48.5% 0.0545 -0.1816)
OKLCHoklch(48.5% 0.19 286.7)
XYZxyz(16.1971, 10.1178, 52.1280)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D42C2 #A7C242
analogous
#4267C2 #5D42C2 #9D42C2
triadic
#5D42C2 #C25D42 #42C25D
tetradic
#5D42C2 #C24267 #A7C242 #42C29D
square
#5D42C2 #C24267 #A7C242 #42C29D
split-complementary
#5D42C2 #C29D42 #67C242
monochromatic
#302268 #463196 #5D42C2 #8570D1 #AC9FE0

Accessibility & contrast

On white

6.94
#5D42C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5D42C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D42C2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D42C2#FFFFFF#000000##FFFFFF
##5D42C21.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0056BF
Tritanopia (blue-blind)
#36627C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d42c2;
/* rgb */ color: rgb(93, 66, 194);
/* oklch */ color: oklch(48.5% 0.190 286.7);
Tailwind
colors: {
  custom: {
    50: '#9478d5',
    500: '#5d42c2',
    950: '#000000',
  },
}
SCSS
$custom: #5d42c2;
$custom-light: #9478d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d42c2",
  "rgb": {
    "r": 93,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 252.656,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48495,
    "c": 0.18959,
    "h": 286.7
  },
  "luminance": 0.10119
}

Semantic roles & 50–950 ramp

primary
#5D42C2
secondary
#C0CC94
accent
#DB4DBD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5D42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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