#5D42D7#5D42D7

#5D42D7 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.3% C 0.215 H 283.8°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5D42D7
RGBrgb(93, 66, 215)
HSLhsl(251, 65%, 55%)
HSVhsv(251, 69%, 84%)
CMYKcmyk(56.7%, 69.3%, 0%, 15.7%)
CIE-LABlab(39.80, 50.43, -72.58)
CIE-LCHlch(39.80, 88.38, 304.79°)
OKLaboklab(50.29% 0.0513 -0.2089)
OKLCHoklch(50.29% 0.215 283.8)
XYZxyz(18.7244, 11.1287, 65.4382)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D42D7 #BCD742
analogous
#4272D7 #5D42D7 #A742D7
triadic
#5D42D7 #D75D42 #42D75D
tetradic
#5D42D7 #D74272 #BCD742 #42D7A7
square
#5D42D7 #D74272 #BCD742 #42D7A7
split-complementary
#5D42D7 #D7A742 #72D742
monochromatic
#2E1C83 #4026B5 #5D42D7 #8875E2 #B4A7EC

Accessibility & contrast

On white

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

On black

3.23
#5D42D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5D42D7#FFFFFF#000000##FFFFFF
##5D42D71.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DB
Deuteranopia (green-blind)
#0059D4
Tritanopia (blue-blind)
#1C6988
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d42d7;
/* rgb */ color: rgb(93, 66, 215);
/* oklch */ color: oklch(50.3% 0.215 283.8);
Tailwind
colors: {
  custom: {
    50: '#9779e4',
    500: '#5d42d7',
    950: '#000000',
  },
}
SCSS
$custom: #5d42d7;
$custom-light: #9779e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d42d7",
  "rgb": {
    "r": 93,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 250.872,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50286,
    "c": 0.21513,
    "h": 283.8
  },
  "luminance": 0.1113
}

Semantic roles & 50–950 ramp

primary
#5D42D7
secondary
#CEDA9B
accent
#E840CA
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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