#5E42DB#5E42DB

#5E42DB is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.220 H 283.7°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5E42DB
RGBrgb(94, 66, 219)
HSLhsl(251, 68%, 56%)
HSVhsv(251, 70%, 86%)
CMYKcmyk(57.1%, 69.9%, 0%, 14.1%)
CIE-LABlab(40.23, 51.76, -74.16)
CIE-LCHlch(40.23, 90.44, 304.91°)
OKLaboklab(50.72% 0.052 -0.2135)
OKLCHoklch(50.72% 0.22 283.7)
XYZxyz(19.3466, 11.3894, 68.1830)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42DB #BFDB42
analogous
#4272DB #5E42DB #AA42DB
triadic
#5E42DB #DB5E42 #42DB5E
tetradic
#5E42DB #DB4272 #BFDB42 #42DBAA
square
#5E42DB #DB4272 #BFDB42 #42DBAA
split-complementary
#5E42DB #DBAA42 #72DB42
monochromatic
#2E1A89 #4024BC #5E42DB #8A75E5 #B6A9EF

Accessibility & contrast

On white

6.41
#5E42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5E42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E42DB
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42DB#FFFFFF#000000##FFFFFF
##5E42DB1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E0
Deuteranopia (green-blind)
#005AD8
Tritanopia (blue-blind)
#196B8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5e42db;
/* rgb */ color: rgb(94, 66, 219);
/* oklch */ color: oklch(50.7% 0.220 283.7);
Tailwind
colors: {
  custom: {
    50: '#9879e7',
    500: '#5e42db',
    950: '#000000',
  },
}
SCSS
$custom: #5e42db;
$custom-light: #9879e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42db",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 250.98,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50722,
    "c": 0.21976,
    "h": 283.7
  },
  "luminance": 0.11391
}

Semantic roles & 50–950 ramp

primary
#5E42DB
secondary
#D0DC9D
accent
#EB3DCB
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5E42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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