#5D40DF#5D40DF

#5D40DF is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.7% C 0.227 H 283.1°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5D40DF
RGBrgb(93, 64, 223)
HSLhsl(251, 71%, 56%)
HSVhsv(251, 71%, 87%)
CMYKcmyk(58.3%, 71.3%, 0%, 12.5%)
CIE-LABlab(40.11, 53.84, -76.64)
CIE-LCHlch(40.11, 93.66, 305.09°)
OKLaboklab(50.73% 0.0514 -0.2208)
OKLCHoklch(50.73% 0.227 283.1)
XYZxyz(19.6628, 11.3204, 70.9467)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40DF #C2DF40
analogous
#4073DF #5D40DF #AC40DF
triadic
#5D40DF #DF5D40 #40DF5D
tetradic
#5D40DF #DF4073 #C2DF40 #40DFAC
square
#5D40DF #DF4073 #C2DF40 #40DFAC
split-complementary
#5D40DF #DFAC40 #73DF40
monochromatic
#2D188D #3E20C1 #5D40DF #8974E8 #B6A9F1

Accessibility & contrast

On white

6.43
#5D40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5D40DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D40DF
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D40DF#FFFFFF#000000##FFFFFF
##5D40DF1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E4
Deuteranopia (green-blind)
#0059DC
Tritanopia (blue-blind)
#056B8C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5d40df;
/* rgb */ color: rgb(93, 64, 223);
/* oklch */ color: oklch(50.7% 0.227 283.1);
Tailwind
colors: {
  custom: {
    50: '#9878ea',
    500: '#5d40df',
    950: '#000000',
  },
}
SCSS
$custom: #5d40df;
$custom-light: #9878ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40df",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 250.943,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50727,
    "c": 0.22669,
    "h": 283.1
  },
  "luminance": 0.11322
}

Semantic roles & 50–950 ramp

primary
#5D40DF
secondary
#D2DE9D
accent
#EE3ACD
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5D40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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