#5D42E0#5D42E0

#5D42E0 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.1% C 0.226 H 282.7°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#5D42E0
RGBrgb(93, 66, 224)
HSLhsl(250, 72%, 57%)
HSVhsv(250, 71%, 88%)
CMYKcmyk(58.5%, 70.5%, 0%, 12.2%)
CIE-LABlab(40.58, 53.08, -76.45)
CIE-LCHlch(40.58, 93.07, 304.78°)
OKLaboklab(51.09% 0.0497 -0.2202)
OKLCHoklch(51.09% 0.226 282.7)
XYZxyz(19.9128, 11.6041, 71.6971)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D42E0 #C5E042
analogous
#4276E0 #5D42E0 #AC42E0
triadic
#5D42E0 #E05D42 #42E05D
tetradic
#5D42E0 #E04276 #C5E042 #42E0AC
square
#5D42E0 #E04276 #C5E042 #42E0AC
split-complementary
#5D42E0 #E0AC42 #76E042
monochromatic
#2C1890 #3C20C5 #5D42E0 #8A77E9 #B7ABF1

Accessibility & contrast

On white

6.32
#5D42E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5D42E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D42E0
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D42E0#FFFFFF#000000##FFFFFF
##5D42E01.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E5
Deuteranopia (green-blind)
#005ADD
Tritanopia (blue-blind)
#006D8D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5d42e0;
/* rgb */ color: rgb(93, 66, 224);
/* oklch */ color: oklch(51.1% 0.226 282.7);
Tailwind
colors: {
  custom: {
    50: '#9879eb',
    500: '#5d42e0',
    950: '#000000',
  },
}
SCSS
$custom: #5d42e0;
$custom-light: #9879eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d42e0",
  "rgb": {
    "r": 93,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 250.253,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51085,
    "c": 0.22578,
    "h": 282.7
  },
  "luminance": 0.11605
}

Semantic roles & 50–950 ramp

primary
#5D42E0
secondary
#D4DF9F
accent
#EF39D0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D42E0

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

Preview Lab → · Contrast checker → · Palette generator →

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