#5D40ED#5D40ED

#5D40ED is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.0% C 0.243 H 281.5°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5D40ED
RGBrgb(93, 64, 237)
HSLhsl(250, 83%, 59%)
HSVhsv(250, 73%, 93%)
CMYKcmyk(60.8%, 73%, 0%, 7.1%)
CIE-LABlab(41.39, 57.91, -82.50)
CIE-LCHlch(41.39, 100.80, 305.06°)
OKLaboklab(52.01% 0.0484 -0.2379)
OKLCHoklch(52.01% 0.243 281.5)
XYZxyz(21.6289, 12.1068, 81.3014)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40ED #D0ED40
analogous
#407AED #5D40ED #B440ED
triadic
#5D40ED #ED5D40 #40ED5D
tetradic
#5D40ED #ED407A #D0ED40 #40EDB4
square
#5D40ED #ED407A #D0ED40 #40EDB4
split-complementary
#5D40ED #EDB440 #7AED40
monochromatic
#280FA3 #3615DB #5D40ED #8C78F2 #BCB0F8

Accessibility & contrast

On white

6.14
#5D40ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5D40ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D40ED
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D40ED#FFFFFF#000000##FFFFFF
##5D40ED1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067F2
Deuteranopia (green-blind)
#005BEA
Tritanopia (blue-blind)
#007193
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5d40ed;
/* rgb */ color: rgb(93, 64, 237);
/* oklch */ color: oklch(52.0% 0.243 281.5);
Tailwind
colors: {
  custom: {
    50: '#9b78f4',
    500: '#5d40ed',
    950: '#000000',
  },
}
SCSS
$custom: #5d40ed;
$custom-light: #9b78f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40ed",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 237
  },
  "hsl": {
    "h": 250.058,
    "s": 82.775,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52012,
    "c": 0.24283,
    "h": 281.5
  },
  "luminance": 0.12108
}

Semantic roles & 50–950 ramp

primary
#5D40ED
secondary
#DBE6A2
accent
#F92FD7
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5D40ED

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

Preview Lab → · Contrast checker → · Palette generator →

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