#5D42E2#5D42E2

#5D42E2 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.3% C 0.228 H 282.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5D42E2
RGBrgb(93, 66, 226)
HSLhsl(250, 73%, 57%)
HSVhsv(250, 71%, 89%)
CMYKcmyk(58.8%, 70.8%, 0%, 11.4%)
CIE-LABlab(40.76, 53.67, -77.30)
CIE-LCHlch(40.76, 94.10, 304.77°)
OKLaboklab(51.26% 0.0493 -0.2227)
OKLCHoklch(51.26% 0.228 282.5)
XYZxyz(20.1856, 11.7132, 73.1339)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D42E2 #C7E242
analogous
#4277E2 #5D42E2 #AD42E2
triadic
#5D42E2 #E25D42 #42E25D
tetradic
#5D42E2 #E24277 #C7E242 #42E2AD
square
#5D42E2 #E24277 #C7E242 #42E2AD
split-complementary
#5D42E2 #E2AD42 #77E242
monochromatic
#2C1793 #3B1FC8 #5D42E2 #8A77EA #B8ACF2

Accessibility & contrast

On white

6.28
#5D42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5D42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D42E2
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D42E2#FFFFFF#000000##FFFFFF
##5D42E21.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#005ADF
Tritanopia (blue-blind)
#006D8E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5d42e2;
/* rgb */ color: rgb(93, 66, 226);
/* oklch */ color: oklch(51.3% 0.228 282.5);
Tailwind
colors: {
  custom: {
    50: '#9979ec',
    500: '#5d42e2',
    950: '#000000',
  },
}
SCSS
$custom: #5d42e2;
$custom-light: #9979ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5d42e2",
  "rgb": {
    "r": 93,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 250.125,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51264,
    "c": 0.22813,
    "h": 282.5
  },
  "luminance": 0.11715
}

Semantic roles & 50–950 ramp

primary
#5D42E2
secondary
#D5E09F
accent
#F038D1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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