#5D40CA#5D40CA

#5D40CA is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 48.9% C 0.202 H 285.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5D40CA
RGBrgb(93, 64, 202)
HSLhsl(253, 57%, 52%)
HSVhsv(253, 68%, 79%)
CMYKcmyk(54%, 68.3%, 0%, 20.8%)
CIE-LABlab(38.30, 47.69, -67.52)
CIE-LCHlch(38.30, 82.66, 305.23°)
OKLaboklab(48.88% 0.0552 -0.1941)
OKLCHoklch(48.88% 0.202 285.9)
XYZxyz(17.0051, 10.2573, 56.9495)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40CA #ADCA40
analogous
#4068CA #5D40CA #A240CA
triadic
#5D40CA #CA5D40 #40CA5D
tetradic
#5D40CA #CA4068 #ADCA40 #40CAA2
square
#5D40CA #CA4068 #ADCA40 #40CAA2
split-complementary
#5D40CA #CAA240 #68CA40
monochromatic
#301F70 #452CA0 #5D40CA #8670D7 #AEA0E5

Accessibility & contrast

On white

6.88
#5D40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5D40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D40CA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D40CA#FFFFFF#000000##FFFFFF
##5D40CA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#2F6480
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d40ca;
/* rgb */ color: rgb(93, 64, 202);
/* oklch */ color: oklch(48.9% 0.202 285.9);
Tailwind
colors: {
  custom: {
    50: '#9577db',
    500: '#5d40ca',
    950: '#000000',
  },
}
SCSS
$custom: #5d40ca;
$custom-light: #9577db;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40ca",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 252.609,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48876,
    "c": 0.20177,
    "h": 285.9
  },
  "luminance": 0.10258
}

Semantic roles & 50–950 ramp

primary
#5D40CA
secondary
#C4D195
accent
#E048C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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