#5D40C8#5D40C8

#5D40C8 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.199 H 286.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5D40C8
RGBrgb(93, 64, 200)
HSLhsl(253, 55%, 52%)
HSVhsv(253, 68%, 78%)
CMYKcmyk(53.5%, 68%, 0%, 21.6%)
CIE-LABlab(38.13, 47.10, -66.63)
CIE-LCHlch(38.13, 81.60, 305.26°)
OKLaboklab(48.71% 0.0555 -0.1915)
OKLCHoklch(48.71% 0.199 286.2)
XYZxyz(16.7698, 10.1632, 55.7104)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40C8 #ABC840
analogous
#4067C8 #5D40C8 #A140C8
triadic
#5D40C8 #C85D40 #40C85D
tetradic
#5D40C8 #C84067 #ABC840 #40C8A1
square
#5D40C8 #C84067 #ABC840 #40C8A1
split-complementary
#5D40C8 #C8A140 #67C840
monochromatic
#30206E #452D9D #5D40C8 #8570D6 #AE9FE3

Accessibility & contrast

On white

6.92
#5D40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5D40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D40C8
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D40C8#FFFFFF#000000##FFFFFF
##5D40C81.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#31637F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d40c8;
/* rgb */ color: rgb(93, 64, 200);
/* oklch */ color: oklch(48.7% 0.199 286.2);
Tailwind
colors: {
  custom: {
    50: '#9577da',
    500: '#5d40c8',
    950: '#000000',
  },
}
SCSS
$custom: #5d40c8;
$custom-light: #9577da;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40c8",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 252.794,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48705,
    "c": 0.19935,
    "h": 286.2
  },
  "luminance": 0.10164
}

Semantic roles & 50–950 ramp

primary
#5D40C8
secondary
#C3D094
accent
#DF49BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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