#5D40CD#5D40CD

#5D40CD is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.1% C 0.205 H 285.5°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5D40CD
RGBrgb(93, 64, 205)
HSLhsl(252, 59%, 53%)
HSVhsv(252, 69%, 80%)
CMYKcmyk(54.6%, 68.8%, 0%, 19.6%)
CIE-LABlab(38.55, 48.57, -68.85)
CIE-LCHlch(38.55, 84.25, 305.20°)
OKLaboklab(49.13% 0.0547 -0.198)
OKLCHoklch(49.13% 0.205 285.5)
XYZxyz(17.3637, 10.4008, 58.8384)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40CD #B0CD40
analogous
#406ACD #5D40CD #A340CD
triadic
#5D40CD #CD5D40 #40CD5D
tetradic
#5D40CD #CD406A #B0CD40 #40CDA3
square
#5D40CD #CD406A #B0CD40 #40CDA3
split-complementary
#5D40CD #CDA340 #6ACD40
monochromatic
#301E74 #442BA5 #5D40CD #8671DA #AFA1E6

Accessibility & contrast

On white

6.82
#5D40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5D40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D40CD
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D40CD#FFFFFF#000000##FFFFFF
##5D40CD1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0056CA
Tritanopia (blue-blind)
#2B6582
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d40cd;
/* rgb */ color: rgb(93, 64, 205);
/* oklch */ color: oklch(49.1% 0.205 285.5);
Tailwind
colors: {
  custom: {
    50: '#9677dd',
    500: '#5d40cd',
    950: '#000000',
  },
}
SCSS
$custom: #5d40cd;
$custom-light: #9677dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40cd",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 252.34,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49134,
    "c": 0.20539,
    "h": 285.5
  },
  "luminance": 0.10402
}

Semantic roles & 50–950 ramp

primary
#5D40CD
secondary
#C6D396
accent
#E246C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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